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

LibGfx: Expose BitmapFont glyph data as Spans instead of raw pointers

This commit is contained in:
Sam Atkins 2023-10-02 20:29:42 +01:00 committed by Tim Schumacher
parent 80e756daef
commit 18dfc61280
3 changed files with 19 additions and 19 deletions

View file

@ -38,8 +38,8 @@ public:
~BitmapFont();
u8* rows() { return m_rows.data(); }
u8* widths() { return m_glyph_widths.data(); }
Bytes rows() { return m_rows; }
Span<u8> widths() { return m_glyph_widths; }
virtual float point_size() const override { return m_presentation_size; }