35 float getAscent()
const;
37 float getDescent()
const;
39 float getLineHeight()
const;
41 float getBaseline()
const;
44 std::string getFamilyName()
const;
46 std::string getStyleName()
const;
48 int getGlyphCount()
const;
51 bool hasGlyph(
int codepoint)
const;
53 bool hasGlyphs(std::string
text)
const;
55 float getWidth(std::string
text)
const;
57 float getKerning(
int leftCodepoint,
int rightCodepoint)
const;
63 int getGlyphWidth(
int codepoint)
const;
65 int getGlyphHeight(
int codepoint)
const;
67 int getGlyphBearingX(
int codepoint)
const;
69 int getGlyphBearingY(
int codepoint)
const;
71 int getGlyphAdvance(
int codepoint)
const;
90 const GlyphCache &ensureGlyph(
int codepoint)
const;
91 unsigned int glyphIndex(
int codepoint)
const;
93 std::vector<uint8_t>
bytes;
96 mutable std::vector<GlyphCache> glyphCache;
#define EVENGINE_API_BACKENDS
struct FT_FaceRec_ * FT_Face
Resource is a game object that is managed by the ResourceManager. It can be loaded from a file or gen...
CPU-side decoded font face (FreeType FT_Face + owned font bytes). Does not upload to GPU — rasterize ...
Represents raw pixel data.
Build metadata (engine git commit, build time, third-party version).