-
Notifications
You must be signed in to change notification settings - Fork 51
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
Width class mapping in G3 #780
Comments
Obviously there are two problems here. I can fix the inferred default, but the other problem is that the range of the width axis then goes from 2.0 to 5.0. I think that axis coordinates should be used for mapping instead. |
Setting the |
Using the weight/width class as axis location and mapping is simply wrong, e.g.: it breaks the export of all of my own fonts. Please use the axis coordinates as is. And only add a avar mapping when there is an "Axis Location" parameter in both the masters and the instances. Because inferring the mapped axis ranges from instances only works if you have instances exactly at each master. And that is an assumption I would not dare to make. |
this must be a regression in the glyphs3 transition, or a change of semantics in g3. We should ensure that existing glyphs2 fonts that relied on the old glyphsLib behavior continue to work and use whatever g3 now defines for g3 sources |
Looks like something was supposed to go through |
As per most glyphsLib bugs, glyphsLib is guessing something when it already knows the right answer. |
i think in glyphs2 widthValue was a string like "Semi-Condensed" or similar, glyphs3 changed it to an int. So something has broken in the transition. The guessing was necessary before, it did not know the right answer because there wasn't yet any. |
Yeah, it looks like another problem is that in G2 files, |
I think I have a fix. |
When mapping user-space to design-space in the designspace file, glyphsLib uses the "Width Class" in the instances of the source file, not the axis coordinates. However, Glyphs does not write a
widthClass
for the default value (5). For some reason, glyphsLib then infers awidthClass
of 100, leading to a designspace like this:The text was updated successfully, but these errors were encountered: