-
Notifications
You must be signed in to change notification settings - Fork 610
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
Cantarell CFF2 subsetting corrupts outlines #4125
Comments
Oh boy... |
Humm. Is OTS requiring fvar table for CFF2 fonts? If that's the case, that seems wrong. cc @jfkthame @khaledhosny |
Oh, it's probably because we didn't null the VarStore in the CFF2 table. Nevermind. |
Random thought: should subsetting tests employ OTS to sniff-check resulting files? |
We already do that: We just don't have many (any?) tests for CFF instancing. cc @qxliu76 |
Passing OTS is rather hard fix :( |
I'm pushing some fixes here: |
The good news is that the bug with rendering is NOT in the instancing, but in the desubroutinization. As if it makes it any easier... |
Okay, wasn't too hard. A missing |
The rendering issue is fixed. For ots-sanitize issue, I'm working on that in #4126, though I'm not sure when/if I can finish it. |
#4126 fixes the OTS issue. |
Tested with https://github.com/harfbuzz/harfbuzz/tree/adccc5355b695cfaaf6403a3187c67c7fcae623d.
prebuilt/*.otf
file insidehb-subset --glyphs="*" --layout-features="*" --layout-scripts="*" --drop-tables-="*" --instance="wght=100" Cantarell-VF.otf -o /tmp/a.otf
It also fails to load in sites like http://cyreal.org/Font-Testing-Page/, with these error messages in Firefox:
The text was updated successfully, but these errors were encountered: