HikoGUI
A low latency retained GUI
|
Public Member Functions | |
void | reserve (size_t count) noexcept |
void | scale_and_offset (float s) noexcept |
Scale and position the result of the run. | |
Data Fields | |
std::vector< float > | advances |
The horizontal advance of each grapheme. | |
std::vector< size_t > | glyph_count |
The number of glyphs used by each grapheme. | |
std::vector< glyph_id > | glyphs |
The glyphs representing all the graphemes. | |
std::vector< point2 > | glyph_positions |
Position of each glyph, relative to the grapheme. | |
std::vector< aarectangle > | glyph_rectangles |
The bounding rectangle for each glyph, relative to glyph_position. | |
|
inlinenoexcept |
Scale and position the result of the run.
s | The font-size to scale by |
x | The horizontal position, calculated after scaling |
std::vector<float> v1::font::shape_run_result_type::advances |
The horizontal advance of each grapheme.
std::vector<size_t> v1::font::shape_run_result_type::glyph_count |
The number of glyphs used by each grapheme.
std::vector<point2> v1::font::shape_run_result_type::glyph_positions |
Position of each glyph, relative to the grapheme.
There is exactly one position for each glyph.
std::vector<aarectangle> v1::font::shape_run_result_type::glyph_rectangles |
The bounding rectangle for each glyph, relative to glyph_position.
There is exactly one bounding rectangle for each glyph.
std::vector<glyph_id> v1::font::shape_run_result_type::glyphs |
The glyphs representing all the graphemes.
There may be zero or more glyphs for each grapheme. The difference may be due to having to add accent-glyphs or merging glyphs into ligatures.