-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Cannot produce variable font from Cantarell glyphs source #217
Comments
@anthrotype can you debug this? |
I had the same problem yesterday with some version of Montserrat on my machine. It looks like it comes from a component that is scale by >= 2.0 which if I understand correctly does not fit in the opentype "2.14" format for floats on two words. Here is the debug session: https://gist.github.com/belluzj/663b1dfe4431dbb9fdd0e87dc01e0f0d Here is the transform in the file: EDIT: this transform is actually in the latest source as well: |
That doesn't explain why it's failing in glyf table though. Why does it work without variations? Oh, it might be that we flatten composites in the normal output? |
But yeah, transform components are limited to (-2,+2). |
Shouldn't that mean that these transformations shouldn't fail, as they are exactly 2? Edit: Jany says "It's actually - 2 included to +2 excluded" 😁 |
Correct. Correct range is [-2,+2). |
And decompose glyphs using larger values. In the varfont case, we should decompose in all masters. |
do you mean, we should special-case the component transfomation values when they are == +2.0 and clamp that to be |
Yes.
I'd be fine with TTGlyphPen doing.
Whatever. Everything we do has a cheating element to it ;). Just make sure you do that for all masters at the same time, if it's for interpolatable output. |
not yet (see below) |
fonttools/fonttools#1205 added an option to TTGlyphPen called See @behdad's comment
|
(Not sure if this is a ufo2ft bug or something else.)
Producing non-variable interpolated fonts works.
The text was updated successfully, but these errors were encountered: