-
Notifications
You must be signed in to change notification settings - Fork 43
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
Composite glyph not propagated correctly into font #695
Comments
Sorry, the lower screenshot is showing |
do you see any logging warnings from fontTools.varLib about incompatible composite glyphs across masters? I suspect in your case the components of different masters have different 2x2 transforms and thus can't be variated (only x/y offset can be at the moment), so varLib is ignoring them when generating gvar: We have an open issue about automatically decomposing glyphs when building VFs when transforms differ across masters, see #507 (comment) |
what do you mean by "propagate" in this context? |
"Propagate" as in the wrong outline ends up in the font, Thin outline ends up in all masters for this glyph. After your input I was able to trace down the problem to a transformed component indeed that differs across masters, and I can confirm that the glyph in question is decomposed in the binary. But decomposition isn't my problem then. More like faulty decomposition. Shouldn't the filter decompose each master separately? What's happening here is that the Thin master’s outlines propagate to all masters for the glyph in question (while the glyph width propagates correctly). Btw, I tried both PyPI as well as git/main versions of all major tools involved, to identical results. |
/cc @simoncozens |
I'm going to move on and fix the problem in the source. Since the linked repo will reflect this, use duongtrtype/DTPhudu@d69db5d as a point of reference for the affected glyphs I thought that maybe it's components being nested that causes this behaviour: If that's the case, nested components alone aren't the problem. Only in combination with component transformations. Scaling the component back to 100%, which is very possible in this design, produces correct outlines. |
A unicase font I'm working on shows an anomaly where the glyph
ohorntilde
, which is composed ofOhorntilde
, is showing only the Thin master outlines in the VF while the glyph width is adjusted properly.ohorntilde
is composed of nested components (Ohorntilde
itself contains the componentOhorn
), but when I decompose everything to bare outlines I still get the same result.I’ve confirmed in the intermediate master UFOs that
glyphsLib
propagates the outlines correctly, so it’s not inglyphsLib
for once.What could I try? Where could I check?
VF:
Black Master UFO via
glyphsLib
:The text was updated successfully, but these errors were encountered: