-
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
Support public.skipExportGlyphs lib key for storing export flags #519
Support public.skipExportGlyphs lib key for storing export flags #519
Conversation
Need more tests
Also simplify note to glyph assignment to keep flake8's complexity test happy.
sgtm |
Must check interaction with the "Keep Glyphs", "Export Glyphs" and "Remove Glyphs" (and others?) parameters... |
We only support "Keep Glyphs" currently and it turns out it causes feature subsetting on export from Glyphs.app. |
I also had to revert this, because fontmake --subset option relies on the individual glyph Export flags and works slightly differently than then new |
In fontmake or glyphsLib? |
Hi. Did this ever get implemented in another way? Or did it sort of fall by the wayside? |
(I should mention that I am able to work around it by manually updating the designspace file as part of the export process, but it'd be nice not to have to do that :) ) |
|
Aha! Wish I'd spotted that sooner 😅 |
#515.
Handling this well in a oh-please-not-more-technical-debt kind of way is tricky.
There are three ways to signal that a glyph should not be exported:
com.schriftgestaltung.Glyphs.Export
glyph lib keypublic.skipExportGlyphs
lib keypublic.skipExportGlyphs
lib keyufo2ft will look into the Designspace lib key when using the
compile*FromDS
functions and into the UFO-level lib keys with the othercompile*
functions. Writing only to the Designspace-level lib key may complicate e.g. fontmake, which usesglyphsLib.to_designspace
to convert a .glyphs file into DS + UFOs, but usescompile*
orcompile*FromDS
depending on what the user specifies on the CLI.Proposed behavior:
to_glyphs
):public.skipExportGlyphs
lib key, but error out when the lists don't match or some have one and others don'tto_ufos
,to_designspace
)public.skipExportGlyphs
lib keys.