mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 20:58:16 +00:00
SharedGraphics: Draw an error glyph instead of crashing due to missing glyphs.
This commit is contained in:
parent
af06d5edc1
commit
7a7fc37ca1
Notes:
sideshowbarker
2024-07-19 15:58:13 +09:00
Author: https://github.com/awesomekling
Commit: 7a7fc37ca1
5 changed files with 28 additions and 1 deletions
|
@ -12,6 +12,7 @@ public:
|
|||
~Font();
|
||||
|
||||
const CharacterBitmap* glyph_bitmap(byte) const;
|
||||
const CharacterBitmap* error_bitmap() const { return m_error_bitmap.ptr(); }
|
||||
|
||||
byte glyph_width() const { return m_glyph_width; }
|
||||
byte glyph_height() const { return m_glyph_height; }
|
||||
|
@ -23,6 +24,7 @@ private:
|
|||
|
||||
const char* const* m_glyphs { nullptr };
|
||||
mutable RetainPtr<CharacterBitmap> m_bitmaps[256];
|
||||
RetainPtr<CharacterBitmap> m_error_bitmap;
|
||||
|
||||
byte m_glyph_width { 0 };
|
||||
byte m_glyph_height { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue