mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
LibGfx+FontEditor: Add helper to determine raw glyph presence
GlyphBitmaps are considered present if they have a width greater than zero. This adds a counterpart method for raw (unmasked) glyphs and makes intent more explicit throughout FontEditor.
This commit is contained in:
parent
cdaa179eeb
commit
edf86af4f4
3 changed files with 8 additions and 7 deletions
|
@ -43,6 +43,7 @@ public:
|
|||
Glyph glyph(u32 code_point) const override;
|
||||
Glyph raw_glyph(u32 code_point) const;
|
||||
bool contains_glyph(u32 code_point) const override;
|
||||
bool contains_raw_glyph(u32 code_point) const { return m_glyph_widths[code_point] > 0; }
|
||||
|
||||
ALWAYS_INLINE int glyph_or_emoji_width(u32 code_point) const override
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue