Skip to content

gftools gen-spac: support distinct user axis values - #1215

Merged
m4rc1e merged 2 commits into
googlefonts:mainfrom
daltonmaag:gen-spac-remap
Aug 25, 2026
Merged

gftools gen-spac: support distinct user axis values#1215
m4rc1e merged 2 commits into
googlefonts:mainfrom
daltonmaag:gen-spac-remap

Conversation

@RickyDaMa

@RickyDaMa RickyDaMa commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

For a project, we want to use 200 as the max, but have the axis read as 100. This adds that, by adding two optional flags which overwrite the fvar axis min/max if provided

I will work on rebasing #1214 on top of this Update: done

Open to bikeshedding flag names & help strings

Sort imports
Type annotate {min,max}_coords
Type annotate add_spacing_axis
Make file executable since it has a shebang
@m4rc1e

m4rc1e commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Can you explain why you need this? I cannot work out why you'd need the SPAC axis min and max to have different vals.

@RickyDaMa

Copy link
Copy Markdown
Contributor Author

Essentially we want the axis max to be 100 (--user-max) - this is to follow the convention outlined in the axis registry (link). We also want the axis to correspond to a ~20% increase in the spacing, which is the max value of 200. Maybe it's simpler to show as a designspace snippet:

<axis tag="SPAC" name="Spacing" minimum="0" maximum="100" default="0">
    <map input="100" output="200"/>
    <map input="0" output="0"/>
</axis>

cc @MariannaPaszkowska

@m4rc1e
m4rc1e merged commit fffcab0 into googlefonts:main Aug 25, 2026
14 checks passed
@RickyDaMa
RickyDaMa deleted the gen-spac-remap branch August 25, 2026 14:34
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