googlefonts / noto-emoji

Noto Emoji fonts
SIL Open Font License 1.1
3.74k stars 451 forks source link

CBDT header version #412

Closed rsheeter closed 1 year ago

rsheeter commented 1 year ago

Using emojicompat with https://github.com/googlefonts/emojicompat/pull/15 applied :

$ emojicompat --font ~/oss/noto-emoji/fonts/NotoColorEmoji-emojicompat.ttf
# dump of compat data omitted
WARNING: CBDT is at version 3.0. Version 2 is required, do NOT use it for emojicompat
         Running any emojicompat operation that saves the font will fix the problem
WARNING: CBLC is at version 3.0. Version 2 is required, do NOT use it for emojicompat
         Running any emojicompat operation that saves the font will fix the problem

$ emojicompat --font ~/oss/noto-emoji/fonts/Noto-COLRv1-emojicompat.ttf
# dump of compat data omitted
# does NOT print a warning as it has no bitmap tables so they can't be misversioned

$ emojicompat --font NotoColorEmoji-emojicompat.ttf --op setup_pua
0 PUA missing
0 PUA point at wrong glyph
3717 PUA correct
0 Emji entries did NOT match a glyph
WARNING: CBDT is at version 3.0. Version 2 is required, fixing that for you...
WARNING: CBLC is at version 3.0. Version 2 is required, fixing that for you...
Updating NotoColorEmoji-emojicompat.ttf

$ emojicompat --font ~/oss/noto-emoji/fonts/Noto-COLRv1-emojicompat.ttf
# now does *not* print a warning
objcode commented 1 year ago

Confirmed working on API23 emulator with prior repro