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
hb_font_set_variations forgets the current coords #1883
Comments
I ended up changing things around and instead of calllng hb_font_set_var_named_instance, do the following:
|
Yes this is bothersome to me... I'm leaning towards making font remember which named instance it's pegged to, and apply variations on top of that when set using |
Am reviewing API changes for release, and came here to express again how much this bothers me! I'm making the release but let's figure this out soon. |
I think I should disagree here, we should have one other API like |
I'm getting nervous about this mess we have right now. Let's aim for an understanding and agreement here. @jfkthame can you please chip in? |
Basically question is, I think, do we want to have a set of "sticky" variations on the font, and then adjustments automatically applied on top of that? Or maybe that's the wrong way to think about it. |
What I think makes sense to me from an API point of view is that If I have a font that has multiple axes, I should be able to set them one by one in separate calls to
The font doesn't need to "remember" which instance was used to set its variations, AFAICS; it just needs to adopt that instance's axis values. Calling So IMO what @matthiasclasen originally tried ought to have worked in the way he expected. |
Okay I like to make this work by making the font remember its named instance and anchor to it. |
Since we can't change |
It uses 0 for every axis that is not specified in the variations.
This was unexpected to me when I did this:
The text was updated successfully, but these errors were encountered: