constexpr unsigned char TextInstructionMarker
bool pageFull(Text &text)
void applyStyle(Font &font, unsigned char flags, bool &bold, bool &italic, bool &underline)
int wordWidth(const Text &text, std::size_t position)
bool prepareGlyph(Text &text, const Glyph &glyph)
bool shouldWrapWord(const Text &text)
A struct that represents a block of text being rendered on the screen.
int maxY
Bottom edge used for pagination. 0 disables pagination.
bool pageBreak
Set when the next glyph would not fit above maxY. Output pauses until the next page is requested.
int maxX
Right edge (exclusive) used for word wrapping.