-
Notifications
You must be signed in to change notification settings - Fork 16
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
Highly sophisticated notdef glyph #379
Conversation
We always add an empty table when color format is I see you draw the notdef glyph only inside |
+1 if we allow user to draw their own .notdef glyph, we would special case it in the list of input SVGs and use that one if present, or fall back to draw one if missing |
Good catch, fixed. You can still achieve OTS failure by subsetting and dropping the notdef outline but who would do such a thing! |
…rease odds of passing OTS
The only change is the .notdef glyph now has an outline thanks to googlefonts/nanoemoji#379
A font without a glyph data table fails OTS. A font with no glyphs with outlines emits a 1 byte glyf table but will emerge from woff2 with a 0 byte glyf. Provide a definition of notdef to avoid getting into this situation.
Currently I've only done this when we're actually generating glyf but I suspect even when there is no glyf or cff table (say a pure SVG font) we might want to add something to increase the odds things Just Work.