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 the upcoming glyf table with cubics opt-in, behind a flag #3113
Comments
More context from @anthrotype
|
Note that you can hack test fonts relatively easily, including variable:
This is based on the technique (Building ttf-cubic fonts) that I used to make experimental "ttf-cubic" fonts. |
FWIW for Google Fonts use we'd much rather have an opt-in to any capability to produce off-spec fonts. If my icon compiler (using fontbuilder) forgets to cu2qu I want an error (as was the case before), not the silent production of a binary that won't work when I deploy it. EDIT: an explicit opt-out would be better than nothing, but it still leaves me open to someone forgetting to add it and getting a nasty, non-obvious, surprise. |
maybe we can leave the TTGlyphPen as it is and just need to change the FontBuilder. We can add an option to FontBuilder constructor with the |
SGTM. |
Now that a glyf table with support for cubic curves is on the roadmap for OpenType 2.0 and that fontTools already supports that output, it can happen that such a glyf table gets produced inadvertently and results in a font that doesn't work except in bleeding-edge environments that run the latest Harfbuzz.
Previously, trying to introduce cubic béziers into the glyf table would crash, and I think it should keep crashing by default for the time being, until at least the spec of the new table format is officially released and implementers can catch up. The new format could be behind a flag, either on fontTools using the config system, or specifically on ttGlyphPens as suggested by @anthrotype .
We'll look into reproducing this issue and possibly propose a PR.
The text was updated successfully, but these errors were encountered: