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

Make it easier to use variable features by allowing to put them in the default source only #833

Merged
merged 2 commits into from
May 13, 2024

Conversation

justvanrossum
Copy link
Contributor

When using variable features, we currently get an error (features.fea:6:5: Can't define a variable scalar in a non-variable font) unless all features in all sources are the same.

This PR additionally allows variable features to be only added to the default source. Thus: if we have variable features in the default source, and no features in all other sources, ufo2ft will still follow the "use variable features" code path.

(Maybe _featuresCompatible() should be renamed to something like _canOptimizeFeatures())

…tures.

This allows us to use variable features more easily by putting them in the
default UFO only.
@justvanrossum
Copy link
Contributor Author

Any thoughts on this, @simoncozens, @anthrotype?

@simoncozens
Copy link
Contributor

LGTM, Cosimo is your man for ufo2ft though.

@anthrotype
Copy link
Member

hey sorry I was out last week, yes this LGTM thank you

@anthrotype anthrotype merged commit c85b363 into googlefonts:main May 13, 2024
7 checks passed
@justvanrossum justvanrossum deleted the broaden-var-features-check branch May 13, 2024 10:27
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.

3 participants