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

Consider partial instantiation in addition to full, static instantiation #17

Closed
chrissimpkins opened this issue Mar 26, 2021 · 4 comments

Comments

@chrissimpkins
Copy link
Member

chrissimpkins commented Mar 26, 2021

"Partial instantiation" = final file includes variable design axis support for at least one axis, other axes are instanced (not currently supported in Slice)
"Static instantiation" = final file has no variable axes, all axes are instanced (current approach in Slice)

@chrissimpkins chrissimpkins changed the title Consider partial instantiation as well as full, static instantiation Consider partial instantiation in addition to full, static instantiation Mar 26, 2021
@chrissimpkins
Copy link
Member Author

chrissimpkins commented Mar 30, 2021

Supported for TTF in varLib.instancer.

https://fonttools.readthedocs.io/en/latest/varLib/instancer.html

This currently supports partial instantiation that creates a static design axis value while leaving one or more variable design axes as is with the full design axis range. There are plans on the fontTools side to support range limitations through a MIN:MAX range syntax, but this is not currently supported in the library.

@chrissimpkins
Copy link
Member Author

Support added in 83bca6e

Will be released in v0.5.0

@chrissimpkins
Copy link
Member Author

I revised the approach to something that is much more straightforward. We will use the following definitions for variable and instanced axes:

  • if the axis entry field is empty, it remains a variable axis
  • if the axis entry field is defined, the axis is sliced at that instance value

I like this approach. It is simple and seems intuitive to me.

This reverts the previous use of "var" or "variable" entry strings for anyone who happened to work with source in the main branch.

I will release this support in v0.5.0.

@chrissimpkins
Copy link
Member Author

Added in v0.5.0

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

No branches or pull requests

1 participant