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

LibGfx: Remove single-code point Font::glyph_or_emoji_width API

All callers are now aware of multi-code point emoji (and must remain so
going forward).
This commit is contained in:
Timothy Flynn 2023-02-22 12:43:21 -05:00 committed by Linus Groh
parent 16ec116133
commit 34567bc145
6 changed files with 11 additions and 21 deletions

View file

@ -46,7 +46,6 @@ public:
virtual Glyph glyph(u32 code_point, GlyphSubpixelOffset) const override;
virtual bool contains_glyph(u32 code_point) const override { return m_font->glyph_id_for_code_point(code_point) > 0; }
virtual float glyph_width(u32 code_point) const override;
virtual float glyph_or_emoji_width(u32 code_point) const override;
virtual float glyph_or_emoji_width(Utf8CodePointIterator&) const override;
virtual float glyph_or_emoji_width(Utf32CodePointIterator&) const override;
virtual float glyphs_horizontal_kerning(u32 left_code_point, u32 right_code_point) const override;