mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
LibGfx: Support computing a font's glyph width with code point iterators
This allows consideration of multi-code point glyphs.
This commit is contained in:
parent
71967bc5de
commit
a391ea3da3
5 changed files with 46 additions and 22 deletions
|
@ -168,6 +168,8 @@ public:
|
|||
virtual float glyph_left_bearing(u32 code_point) const = 0;
|
||||
virtual float glyph_width(u32 code_point) const = 0;
|
||||
virtual float glyph_or_emoji_width(u32 code_point) const = 0;
|
||||
virtual float glyph_or_emoji_width(Utf8CodePointIterator&) const = 0;
|
||||
virtual float glyph_or_emoji_width(Utf32CodePointIterator&) const = 0;
|
||||
virtual float glyphs_horizontal_kerning(u32 left_code_point, u32 right_code_point) const = 0;
|
||||
virtual u8 glyph_height() const = 0;
|
||||
virtual int x_height() const = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue