mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:17:45 +00:00
LibGfx: Extend Unicode support for BitmapFonts
Removes the concept of Type enumeration in favor of a bitmask which represents 544 potential byte ranges of 256 characters per bit, supporting the current unicode code point set (0x0000-0x10FFFF). Range positions are indexed in a vector for code point lookup and conversion. Co-authored-by: Lynn <lynn@foldr.moe>
This commit is contained in:
parent
4540c1ffab
commit
bb592aef8a
5 changed files with 169 additions and 145 deletions
|
@ -92,7 +92,7 @@ public:
|
|||
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 u8 glyph_width(u32 code_point) const = 0;
|
||||
virtual int glyph_or_emoji_width(u32 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