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
varLib.mutator Font instancing produces invalid font file for certain fonts #3478
Comments
It's possible that the font has a Also, |
Yes. |
Would dropping that make it work? You can ttx the instanced font, remove the DSIG table, and ttx it back to ttf. |
Using In line 225 of
|
thanks @ftCLI - unhandled AttributeError is a bug, if getName can sometimes return None its caller must handle that (skip it). Could you PR that? Or I can do it later |
I Have no idea of how to open a PR in a repository that is not mine (sorry, just a hobbist here). I tried to push a snippet few days ago but the push was rejected. |
no worries. In case you're interested, see |
You fork the project to your own account, make a branch there, commit and push. Use GH website to create PR from your own branch/fork. |
Thanks both! |
Quick and dirty: enclose the call to A log message is displayed...
... instead of crashing
Maybe using |
Hiya,
I'm trying to create static font files (TTF) for the font Bahnschrift (now included with Windows) since the variable font does not play nice with Autodesk Fusion. However, when I run this command:
then I try to open the new font file, Windows gives me the following error:
I'm not sure what the cause is, and I tried several different weight/width values to no avail. Below is the output with the verbose flag enabled:
I tested this with another variable font I had, but the resulting instanced font worked fine. I could open it normally and install it. Maybe there's some proprietary data in Bahnschrift that doesn't work well with fonttools? I'm a bit out of my league diagnosing this--my knowledge of font files is pretty shallow.
My environment:
Fonttools version 4.51.0 (from pip)
Python 3.10.7
Windows 11 64-bit version 23H2 build 22631.3447
The text was updated successfully, but these errors were encountered: