Ion
|
A Glyph represents one character glyph in the layout. More...
#include "layout.h"
Public Member Functions | |
Glyph () | |
The default constructor sets an invalid index (0, the NUL character) and sets all quadrilateral points to the origin, and has empty tight bounds. More... | |
Glyph (GlyphIndex glyph_index_in, const Quad &quad_in, const math::Range2f &bounds_in, const math::Vector2f &offset_in) | |
Constructor taking specifics. More... | |
Public Attributes | |
GlyphIndex | glyph_index |
Quad | quad |
math::Range2f | bounds |
math::Vector2f | offset |
Offset from text insertion point to glyph bounds' lower left corner. More... | |
A Glyph represents one character glyph in the layout.
It contains the index of the glyph within the font and the Quad defining the 3D quadrilateral onto which the glyph is mapped.
|
inline |
|
inline |
math::Range2f ion::text::Layout::Glyph::bounds |
GlyphIndex ion::text::Layout::Glyph::glyph_index |
Definition at line 173 of file layout.h.
Referenced by ion::text::Layout::AddGlyph(), ion::text::operator<<(), ion::text::Layout::ReplaceGlyph(), and ion::text::Builder::StoreGlyphVertices().
math::Vector2f ion::text::Layout::Glyph::offset |
Offset from text insertion point to glyph bounds' lower left corner.
For example a '1' glyph often has a positive x offset to keep it from appearing too tight relative to surrounding glyphs, and glyphs with descenders like 'g', 'j', etc. will have a negative y offset.
Quad ion::text::Layout::Glyph::quad |
Definition at line 174 of file layout.h.
Referenced by ion::text::operator<<(), and ion::text::Builder::StoreGlyphVertices().