|
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 GlyphID | find_glyph (char32_t c) const noexcept=0 |
| Get the glyph for a code-point. | |
| FontGlyphIDs | find_glyph (Grapheme g) const noexcept |
| Get the glyphs for a grapheme. | |
| virtual std::optional< GlyphID > | loadGlyph (GlyphID glyph_id, Path &path) const noexcept=0 |
| virtual bool | loadGlyphMetrics (GlyphID glyph_id, GlyphMetrics &metrics, GlyphID lookahead_glyph_id=GlyphID{}) const noexcept=0 |
Data Fields | |
| FontDescription | 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::TrueTypeFont.
|
noexcept |
Get the glyphs for a grapheme.
|
pure virtualnoexcept |
Load a glyph into a path. The glyph is directly loaded from the font file.
| glyphIndex | the index of a glyph inside the font. |
| path | The path constructed by the loader. |
Implemented in tt::TrueTypeFont.
|
pure virtualnoexcept |
Load a glyph into a path. The glyph is directly loaded from the font file.
| glyphIndex | the index of a glyph inside the font. |
| metrics | The metrics constructed by the loader. |
Implemented in tt::TrueTypeFont.
| FontDescription tt::Font::description |
The description is filled with information parsed from the font.