Codechange: use size_t for glyph/run counts, remove unneeded glyph count instance variable

This commit is contained in:
Rubidium
2026-02-11 21:44:35 +01:00
committed by rubidium42
parent c52c8e04a8
commit 39dfb7c27b
7 changed files with 27 additions and 29 deletions
+3 -3
View File
@@ -77,7 +77,7 @@ public:
const Font *GetFont() const override { return this->font; }
int GetLeading() const override { return this->font->fc->GetHeight(); }
int GetGlyphCount() const override { return this->glyphs.size(); }
size_t GetGlyphCount() const override { return this->glyphs.size(); }
int GetAdvance() const { return this->total_advance; }
};
@@ -86,8 +86,8 @@ public:
public:
int GetLeading() const override;
int GetWidth() const override;
int CountRuns() const override { return (uint)this->size(); }
const VisualRun &GetVisualRun(int run) const override { return this->at(run); }
size_t CountRuns() const override { return this->size(); }
const VisualRun &GetVisualRun(size_t run) const override { return this->at(run); }
int GetInternalCharLength(char32_t c) const override
{