speed up monospace fonts

This commit is contained in:
MihailRis 2026-06-10 01:28:23 +03:00
parent 4a11dd28ec
commit 4cc6a83872
4 changed files with 19 additions and 1 deletions

View file

@ -39,6 +39,7 @@ public:
);
~Font();
bool isMonospace() const;
int getLineHeight() const;
int getYOffset() const;
@ -94,6 +95,7 @@ private:
int lineHeight;
int yoffset;
int glyphInterval;
bool monospace = true;
std::vector<std::unique_ptr<Texture>> pages;
std::vector<Glyph> glyphs;
std::optional<std::weak_ptr<vector_fonts::FontFile>> fontFile;