-
Notifications
You must be signed in to change notification settings - Fork 95
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
Instantiation from Glyphs source: usWeightClass is set wrong #615
Comments
The same thing goes for VF instances. It's the same source, the instances have a
|
Small nitpick in your script: I think probably |
Oh, you're right. But I took the values from Glyphs UI, and there it says 900, not 1000. But 100 is wrong anyway. Thanks. |
That's unexpected. It could be something in glyphsLib. |
how did you build the VF exactly? |
Just like that |
oh I see. You have "Axis Location" custom parameters for the masters, but the values are in internal design coordinates. They are meant to define the user-space coordinates of the masters. |
And user-space coordinates are |
yea.. Because none of your instances locations correspond to one of the masters, and when Axis Location params are missing, glyphsLib will infer the master's user-space location from the corresponding instances. |
Yanone, I'm attaching a .glyphs file which will build. I did the following:
You will need to readd the bracket layers in the peso and add them for each later. I deleted them so I could just get a working build. |
currently glyphsLib has two alternative ways to define the Designspace axes mappings (that will go into avar).
The problem with 1) is that it only allows to set user->internal mappings for the masters, but not for anything in between. We need to support a new method introduced recently called "Axis Mapping" that allows more flexibility in defining these mappings. |
for background see googlefonts/glyphsLib#568 and googlefonts/glyphsLib#483 |
So for understanding, I set the
|
Correct! |
Okay, great. Thanks everyone for the quick responses. I'm closing this one here. |
When creating static instances from a Glyphs source, the instance’s interpolation space weight value is used for
usWeightClass
as opposed to the appropriate weight class value.I had actually added a
weightClass
custom parameter to each instance using the simple script below, so the custom parameter should be used forusWeightClass
when present, or otherwise calculated infontmake
on the fly as below:The text was updated successfully, but these errors were encountered: