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

Make it easier to build variant families #1055

Merged
merged 2 commits into from
Nov 1, 2024
Merged

Make it easier to build variant families #1055

merged 2 commits into from
Nov 1, 2024

Conversation

simoncozens
Copy link
Contributor

@simoncozens simoncozens commented Nov 1, 2024

We currently have support in the builder for building small cap variant families; this generalises that idea, with a new configuration option to run a list of operations after the initial font compile. It also adds an option to add a suffix to the output filenames.

Now instead of having to cook up a custom recipe from scratch to handle, say "Cormorant Garamond" (Cormorant + baked-in ss02 feature), you can instead create a separate configuration file like so:

sources:
  - Cormorant.glyphs
  - Cormorant-Italic.glyphs
filenameSuffix: Garamond
postCompile:
  - operation: remapLayout
    args: '''ss02 -> ccmp'''
  - operation: rename
    args: --just-family
    name: Cormorant Garamond

@simoncozens simoncozens merged commit 9e060b9 into main Nov 1, 2024
11 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant