1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-19 19:07:34 +00:00
serenity/Userland/Libraries/LibGfx/Font
Ryan Liptak 379baa984d LibGfx: Always lookup emojis without emoji presentation specifiers
This allows us to treat unqualified, minimally-qualified, and
fully-qualified emojis the same as long as emoji filenames are in their
least qualified form (with respect to emoji presentation).

For example, the transgender flag emoji has 4 possible forms:

    1F3F3 FE0F 200D 26A7 FE0F ; fully-qualified  # 🏳️‍⚧️
    1F3F3 200D 26A7 FE0F      ; unqualified      # 🏳‍⚧️
    1F3F3 FE0F 200D 26A7      ; unqualified      # 🏳️‍⚧
    1F3F3 200D 26A7           ; unqualified      # 🏳‍⚧

In order to treat them all as the same, we now drop all forms down
to 1F3F3 200D 26A7 (skipping any FE0F codepoints) and then do the
lookup for that form.
2022-08-20 23:50:41 +01:00
..
TrueType Everywhere: Split Error::from_string_literal and Error::from_string_view 2022-07-12 23:11:35 +02:00
WOFF Everywhere: Split Error::from_string_literal and Error::from_string_view 2022-07-12 23:11:35 +02:00
BitmapFont.cpp LibGfx: Improve error handling for BitmapFonts 2022-08-04 02:54:00 +02:00
BitmapFont.h LibGfx: Improve error handling for BitmapFonts 2022-08-04 02:54:00 +02:00
Emoji.cpp LibGfx: Always lookup emojis without emoji presentation specifiers 2022-08-20 23:50:41 +01:00
Emoji.h LibGfx: Move other font-related files to LibGfx/Font/ 2022-04-09 23:48:18 +02:00
Font.h LibGfx: Move other font-related files to LibGfx/Font/ 2022-04-09 23:48:18 +02:00
FontDatabase.cpp Userland+Base: Make the window titlebar font configurable separately 2022-08-01 10:29:53 +02:00
FontDatabase.h Userland+Base: Make the window titlebar font configurable separately 2022-08-01 10:29:53 +02:00
FontStyleMapping.h Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
ScaledFont.cpp LibGfx: Use float when calculating text width in ScaledFont 2022-07-09 22:16:18 +02:00
ScaledFont.h LibGfx: Move ScaledFont and new base class VectorFont out of TTF 2022-04-09 23:48:18 +02:00
Typeface.cpp LibGfx: Migrate Typeface from TTF::Font to Gfx::VectorFont 2022-04-09 23:48:18 +02:00
Typeface.h LibGfx: Migrate Typeface from TTF::Font to Gfx::VectorFont 2022-04-09 23:48:18 +02:00
VectorFont.h LibGfx: Move ScaledFont and new base class VectorFont out of TTF 2022-04-09 23:48:18 +02:00