-
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
[markFeatureWriter] skip ignorable anchors #510
Conversation
Shouldn’t this be handled somehow by glyphsLib? I don’t think ufo2ft imposing arbitrary Glyphs conventions on any UFO file. May be ufo2ft should have some this-is-a-UFO-converted-from-Glyphs-file flag to apply this and other Glyphs-specific conventions. |
We can either add an anchor objectLib key to not export a specific anchor or a font.lib key to not export anchors matching a no-export list.
That could work a well. I'm not sure what to do. |
it may be arbitrary and Glyphs.app-only, but it's convenient, even in a UFO only workflow. ObjectLibs could work as well, but they are clumsy to use (is there a UI for them?). |
@moyogo perhaps we can add an |
I think this is better done in glyphsLib minimal mode now, and fontmake should start using it. This way, Glyphs-specific behavior is localized in glyphsLib. |
Skipping "#" is not enough, https://glyphsapp.com/learn/reusing-shapes-component-tricks#g-__repurposing-cursive-attachment-for-ligatures says you can use any non-letter character.
Mh, yeah, but then you still need something for compiling UFOs that contain these anchors, because you might keep them in your sources and compile from there. Maybe an opt-in filter would do the job. |
+1 for an opt-in filter, always turned on for glyphsLib-generated UFOs |
glyphsLib now has its own mark feature writer, so this should be done there now. |
This PR should either be closed or changed to fix anchor names that are invalid for feature files (instead of skipping them silently, which is a Glyphs thing) or even just error. |
Fixed in #869 |
Glyphs.app doesn't export anchors with names starting with "#" or "_#".
See also #477