-
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
skipExportGlyphs regression in 2.18.0 #432
Comments
kontur
added a commit
to kontur/ufo2ft
that referenced
this issue
Nov 25, 2020
… results in KeyError for non-exporting glyphs
Thanks for the report and the PR. I have a similar fix coming, stay tuned |
released v2.18.1 with the fix => https://pypi.org/project/ufo2ft/2.18.1 |
Thanks for the quick action. Ah, I see, there's a more convenient way already in the method signature! Good to include a test 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Following up to the release of 2.18.0 and the solution to not include
skipExportGlyphs
in the feature writer I am getting KeyErrors for the non-exporting glyphs.If I understand correctly, this code here tries to create a new dict that includes everything in the
glyphOrder
.I am not sure if this is caused by the way I am extracting the UFOs from .glyphs sources via glyphsLib or if this applicable to all UFOs. Either way, the UFO's
glyphs/contents.plist
does contain the non-exporting glyphs, so even thoughglyphSet
is filtered by the skipExportGlyphs attribute, the following OrderedDict creation does try access theglyphOrder
index of the non-exporting glyphs that have been pruned fromglyphSet
, and thus raises the error.The text was updated successfully, but these errors were encountered: