-
Notifications
You must be signed in to change notification settings - Fork 5
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
Smith shortcircuit produces incorrect axis values #75
Comments
A thorough way to test this would be to take a couple of our axis-based projects (Lisu Bosa, Namdhinggo) and build them with and without shortcircuit=False. Then compare and fix Smith as needed until the resulting fonts are identical in all metadata values. |
Dai Banna SIL is another good project to test with. It requires
If Possibly there is no issue with The font manifest is not generated unless the shortcircuit statement removed. |
Much of this has been fixed with sorting out axes. But it does expose a bug in psfufo2ttf (well in ufo2ft) whereby a style of Light Italic gets mapped to a font name of Light Italic and style Regular, rather than a font name of Light and style of Italic. Perhaps this can be fixed in the UFO? |
I was able to get shortcircuit results to fit with non shortcircuit results by setting the familyName to SIL Dai Banna Light and styleName to Regular/Italic while leaving the openTypePreferredNames as they were. Ugly but it works. Alternatively set shortcircuit=False for anything with Light in it. |
Smith currently ‘shortcircuits’ the generation of fonts that have the same weight name as masters, but this skips the step where the axis mapping is applied. For example in Lisu Bosa the ExtraLight and Black weight values are incorrect. We've had to work around this but turning off shortcircuit (shortcircuit=false in the designspace), however that slows down builds.
The shortcircuit mechanism needs a redesign for axis-based fonts, as matching via weight name is no longer valid. Either the matching algorithm needs to be improved (effectively reducing the number of situations in which shortcircuit is applied), or shortcircuit needs to hack the shortcircuited fonts to fix the metadata.
The text was updated successfully, but these errors were encountered: