Skip to content
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

Can't build TTF and variable #912

Open
simoncozens opened this issue Jul 13, 2022 · 2 comments
Open

Can't build TTF and variable #912

simoncozens opened this issue Jul 13, 2022 · 2 comments

Comments

@simoncozens
Copy link
Contributor

I'm sure this used to work...

$ fontmake -o ttf variable -g sources/NotoSerifOriya.glyphs
INFO:fontmake.font_project:Building master UFOs and designspace from Glyphs source
INFO:glyphsLib.classes:Parsing "sources/NotoSerifOriya.glyphs" file into <GSFont>
WARNING:glyphsLib.builder.builders.UFOBuilder:Non-existent glyph class public.kern1.gadaorya found in kerning rules.
WARNING:glyphsLib.builder.builders.UFOBuilder:Non-existent glyph class public.kern1.nnannaUIorya found in kerning rules.
fontmake: Error: In 'sources/NotoSerifOriya.glyphs' -> 'master_ufo/NotoSerifOriya.designspace': Generating fonts from Designspace failed: save_otfs() got an unexpected keyword argument 'optimize_gvar'
@belluzj
Copy link
Collaborator

belluzj commented Jul 14, 2022

I added a test here: #913 but before I look into "fixing" it, Cosimo says it might not be a supported use-case, so more like a new feature request? @anthrotype if you can say more

@anthrotype
Copy link
Member

Building both a variable font and static fonts in the same invocation is currently not supported. The pipeline bifurcates depending on whether output formats are variable or not. Also, building -o ttf from a .glyphs source is unlikely to make sense in production, as you will miss the instance custom parameters which are only applied when you pass the -i option (similarly incompatible with -i variable).
What is your use case scenario? I would simply suggest you call different fontmake commands with the -o variable and -i -o ttf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants