10000 [instancer] Fix output filename decision-making by behdad · Pull Request #3548 · fonttools/fonttools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[instancer] Fix output filename decision-making #3548

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

Merged
merged 1 commit into from
May 31, 2024
Merged

Conversation

behdad
Copy link
Member
@behdad behdad commented May 30, 2024

All limits are tuples now when not None. The old logic was broken and for the following command:

$ fonttools varLib.instancer AdobeVFPrototype.otf CNTR=50:80 wght=900

it was saving the output with the name suffix -instance, whereas it's clearly a partial instantiation. This fixes that.

All limits are tuples now when not None. The old logic was
broken and for the following command:

$ fonttools varLib.instancer  AdobeVFPrototype.otf CNTR=50:80 wght=900

it was saving the output with the name suffix `-instance`, whereas
it's clearly a partial instantiation. This fixes that.
@behdad behdad requested a review from anthrotype May 8000 30, 2024 17:49
@behdad
Copy link
Member Author
behdad commented May 30, 2024

Sorry I haven't added tests for this. Would appreciate if someone else does.

@anthrotype
Copy link
Member

LGTM. Tested locally with wght="drop", wght=900 or wght=900:900 and all work

@anthrotype anthrotype merged commit c61fae7 into main May 31, 2024
11 checks passed
@anthrotype anthrotype deleted the instancer-name branch May 31, 2024 13:21
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
0