6#include "TTauri/Text/GlyphMetrics.hpp"
7#include "TTauri/Text/FontGlyphIDs.hpp"
8#include "TTauri/Text/gstring.hpp"
9#include "TTauri/Text/FontDescription.hpp"
10#include "TTauri/Foundation/Path.hpp"
11#include "TTauri/Foundation/ResourceView.hpp"
12#include "TTauri/Foundation/exceptions.hpp"
13#include "TTauri/Foundation/required.hpp"
14#include "TTauri/Foundation/URL.hpp"
28 virtual ~Font() =
default;
30 Font &operator=(
Font const &) =
delete;
Definition tagged_id.hpp:17
virtual std::optional< GlyphID > loadGlyph(GlyphID glyph_id, Path &path) const noexcept=0
FontDescription description
The description is filled with information parsed from the font.
Definition Font.hpp:36
FontGlyphIDs find_glyph(Grapheme g) const noexcept
Get the glyphs for a grapheme.
virtual bool loadGlyphMetrics(GlyphID glyph_id, GlyphMetrics &metrics, GlyphID lookahead_glyph_id=GlyphID{}) const noexcept=0
virtual GlyphID find_glyph(char32_t c) const noexcept=0
Get the glyph for a code-point.
Definition FontDescription.hpp:15
Definition FontGlyphIDs.hpp:77
Definition GlyphMetrics.hpp:17
Definition Grapheme.hpp:20