1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:47:45 +00:00

LibGfx: Use size_t instead of int for glyph count

The count is always non-negative
This commit is contained in:
Idan Horowitz 2021-04-18 22:11:41 +03:00 committed by Andreas Kling
parent c1971df4c7
commit 3c894d1e6f
3 changed files with 3 additions and 3 deletions

View file

@ -156,7 +156,7 @@ public:
virtual String name() const override { return String::formatted("{} {}", family(), variant()); }
virtual bool is_fixed_width() const override { return m_font->is_fixed_width(); }
virtual u8 glyph_spacing() const override { return m_x_scale; } // FIXME: Read from font
virtual int glyph_count() const override { return m_font->glyph_count(); }
virtual size_t glyph_count() const override { return m_font->glyph_count(); }
virtual String family() const override { return m_font->family(); }
virtual String variant() const override { return m_font->variant(); }
virtual String qualified_name() const override { return String::formatted("{} {} {}", family(), presentation_size(), weight()); }