mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
Font: Eagerly load all 256 glyphs. It's not that many.
This commit is contained in:
parent
2e370fa4d5
commit
c7b005c47b
4 changed files with 11 additions and 28 deletions
|
@ -11,8 +11,7 @@ public:
|
|||
|
||||
~Font();
|
||||
|
||||
const CharacterBitmap* glyph_bitmap(byte) const;
|
||||
const CharacterBitmap* error_bitmap() const { return m_error_bitmap.ptr(); }
|
||||
const CharacterBitmap& glyph_bitmap(char ch) const { return *m_bitmaps[(byte)ch]; }
|
||||
|
||||
byte glyph_width() const { return m_glyph_width; }
|
||||
byte glyph_height() const { return m_glyph_height; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue