void SetLineAdvanceHeight(float line_advance)
Sets the vertical distance between successive baselines.
bool AddGlyph(const Glyph &glyph)
Adds a Glyph to the layout.
std::ostream & operator<<(std::ostream &out, const Layout::Quad &q)
Helpers for logging Layouts/Glyphs/Quads.
float GetLineAdvanceHeight() const
Returns the vertical distance between successive baselines in multiline text, scaled to the same unit...
A Quad represents a 3D quadrilateral onto which a character glyph in the layout will be drawn...
void GetGlyphSet(GlyphSet *glyphs) const
Populates glyphs with the glyph indexes appearing in this Layout.
const Glyph & GetGlyph(size_t i) const
Returns the indexed glyph.
void Reserve(size_t s)
Reserves space for at least s glyphs.
bool ReplaceGlyph(size_t i, const Glyph &new_glyph)
Modifies the indexed glyph.
size_t GetGlyphCount() const
Returns the number of glyphs added to the layout.
A Layout instance specifies how glyphs are arranged to form text.
A Glyph represents one character glyph in the layout.