mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17:35 +00:00
LibGfx: draw_glyph_or_emoji fix check for available glyph
This would cause question marks to be rendered when a ttf with fewer glyphs than the value of the code_point was used.
This commit is contained in:
parent
6948f9ca55
commit
3b67b55c84
4 changed files with 5 additions and 3 deletions
|
@ -110,6 +110,7 @@ public:
|
|||
|
||||
virtual u16 weight() const = 0;
|
||||
virtual Glyph glyph(u32 code_point) const = 0;
|
||||
virtual bool contains_glyph(u32 code_point) const = 0;
|
||||
|
||||
virtual u8 glyph_width(size_t ch) const = 0;
|
||||
virtual int glyph_or_emoji_width(u32 code_point) const = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue