mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:27:35 +00:00
LibGfx: Consult Unicode data to decode emoji sequences
For example, consider the Pirate Flag emoji, which is the code point sequence U+1F3F4 U+200D U+2620 U+FE0F. Our current emoji resolution does not consider U+200D (Zero Width Joiner) as part of an emoji sequence. Therefore fonts like Katica, which have a glyph for U+1F3F4, will draw that glyph without checking if we have an emoji bitmap. This removes some hard-coded code points and consults the UCD's code point properties for emoji sequence components and variation selectors. This recognizes the ZWJ code point as part of an emoji sequence.
This commit is contained in:
parent
2eb2207f50
commit
2bc7c11e8d
2 changed files with 14 additions and 18 deletions
|
@ -59,4 +59,4 @@ set(SOURCES
|
|||
)
|
||||
|
||||
serenity_lib(LibGfx gfx)
|
||||
target_link_libraries(LibGfx PRIVATE LibCompress LibCore LibCrypto LibTextCodec LibIPC)
|
||||
target_link_libraries(LibGfx PRIVATE LibCompress LibCore LibCrypto LibTextCodec LibIPC LibUnicode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue