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

Don't save master/instance ufos by default unless -o ufo is requested #1020

Merged
merged 4 commits into from
Jul 27, 2023

Conversation

anthrotype
Copy link
Member

@anthrotype anthrotype commented Jul 26, 2023

Now that we dropped MutatorMath support (which required to read sources from disk, #1019) we can directly build VFs or static instances from in-memory designspace + UFO objects as returned from glyphsLib or generated by fontmake.instantiator. This should considerably speed up build time as we can avoid spending time serializing UFOs.
A few places that assumed things were read from/written to the filesystem had to be tweaked, however the normal behaviour is unchanged.
Except that now, in order to actually save the designspace or UFOs, one has to explicitly include 'ufo' in the list of output formats in -o option.
And when the only output is -o ufo, then one can also use the --output-dir option (works for either masters or instances) or even the --output-path option when selecting to build one specific instance UFO.

This should considerably speed up build time as we can now avoid serializing UFOs and build either VFs or static instances directly from in-memory objects.
A few places that assumed things were read from/written to filesystem had to be tweaked, but the normal behaviour is unchanged.
To save the UFOs you now have to explicitly include 'ufo' in the list of output formats.
And if the *only* output is -o ufo, then one can also use the --output-dir option (works for either masters or instances) or even the --output-path option when selecting to build one specific instance UFO.
…ed or not

It would be weird if one cares to pass that option explicitly and not get any designspace file saved.
@anthrotype anthrotype merged commit adf543b into main Jul 27, 2023
12 checks passed
@anthrotype anthrotype deleted the dont-save-ufos-by-default branch July 27, 2023 08:55
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

Successfully merging this pull request may close these issues.

2 participants