|
HikoGUI
A low latency retained GUI
|
#include <ttauri/text/font.hpp>
Public Member Functions | |
| font (font const &)=delete | |
| font & | operator= (font const &)=delete |
| font (font &&)=delete | |
| font & | operator= (font &&)=delete |
| virtual tt::glyph_id | find_glyph (char32_t c) const noexcept=0 |
| Get the glyph for a code-point. | |
| font_glyph_ids | find_glyph (grapheme g) const noexcept |
| Get the glyphs for a grapheme. | |
| virtual std::optional< tt::glyph_id > | loadGlyph (tt::glyph_id glyph_id, graphic_path &path) const noexcept=0 |
| virtual bool | loadglyph_metrics (tt::glyph_id glyph_id, glyph_metrics &metrics, tt::glyph_id lookahead_glyph_id=tt::glyph_id{}) const noexcept=0 |
Data Fields | |
| font_description | description |
| The description is filled with information parsed from the font. | |
A font. This class has information on how to shape text and get glyphs consisting of bezier contours.
|
pure virtualnoexcept |
Get the glyph for a code-point.
Implemented in tt::true_type_font.
|
noexcept |
Get the glyphs for a grapheme.
|
pure virtualnoexcept |
Load a glyph into a path. The glyph is directly loaded from the font file.
| glyph_id | the id of a glyph inside the font. |
| path | The path constructed by the loader. |
Implemented in tt::true_type_font.
|
pure virtualnoexcept |
Load a glyph into a path. The glyph is directly loaded from the font file.
| glyph_id | the id of a glyph inside the font. |
| metrics | The metrics constructed by the loader. |
| lookahead_glyph_id | The id of a glyph to the right, needed for kerning. |
Implemented in tt::true_type_font.
| font_description tt::font::description |
The description is filled with information parsed from the font.