-
Notifications
You must be signed in to change notification settings - Fork 608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make NotoColorEmoji actually work and implement IndexSubtableFormat{0,2} on CBLC #960
Comments
There is no IndexSubTable0 on https://docs.microsoft.com/en-us/typography/opentype/spec/eblc#indexsubtable1-variable-metrics-glyphs-with-4-byte-offsets how must of them are 0 on Noto? (put |
I wonder why this is implemented at the first place (probably for CLBC on Android) and how now that is broken no body cares |
Looks like his was introduced to get glyph extents since fonts with CBDT/CBLC tables must not have glyph outlines tables, see 8318525. |
I know, and I feel it is implemented somewhere else so now nobody cares about harfbuzz implementation, but am thinking about why it is introduced first here and moved afterward. |
I'll check this today. |
I can confirm this doesn't work:
|
That said, we have a |
Test font has:
NotoColorEmoji has:
so not sure why it doesn't work. |
That code is too complicated for me to wrap my head around of. :( |
Or rather, that table... |
IIRC @nona-google implemented this and I cleaned up and merged it, but he also sent a patch to FreeType to allow loading metrics without loading bitmaps, and that got merged and he ended up using that. That would explain why this was broken and we never noticed. |
I just debugged and somehow the image format is invalid number and leached here. |
Android still uses this code but not sure why I wasn't noticed the breakage. |
Fixes #960 dump-emoji still segfaults. Needs debugging.
Okay. Believe I fixed this. |
Thanks @nona-google. I believe I fixed the core issue here. |
|
Correct. As described on the first comment and as I thought finding cross platform API creating and purging folder is not possible so left that to users. This is not fixed however I am still getting only these from the font, AFAICR there was subtables not implemented on harfbuzz itself. Lets open it again and investigate |
I get lots of more glyphs here. The code should at least check if |
|
Oh thanks. Hmm, just to confirm, are you using a new version of NotoColorEmoji.ttf? Maybe we just lack the support on new one. |
Font version is 2.017, which I think is the latest. |
It works now with the fixes, also applying your comments on #1251, have a look, thanks :) |
Steps to repro:
NotoColorEmoji.ttf
make -Cbuild/src dump-emoji
rmdir out || true; mkdir out
build/src/dumo-emoji NotoColorEmoji.ttf
Actual:
Not all emojis can be dumped on
out/
folder.Expected:
All the glyphs be dumped correctly.
The text was updated successfully, but these errors were encountered: