-
Notifications
You must be signed in to change notification settings - Fork 8
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
Process 'copyGroups' attribute #20
Conversation
It just occurred to me that this process of copying the groups should probably take @LettError WDYT? |
Err, are you using UFO2? Do you have a small test maybe? |
in a UFO3 world see https://github.com/fonttools/fonttools/blob/master/Lib/fontTools/ufoLib/converters.py#L27-L32 |
@typemytype I understand that. The case I'm thinking about is:
If the copyGroups step blindly copies all the groups from the default master into the instance, the latter will have duplicate data, I think. @LettError working on crafting a test |
internally all current tools always up-convert to UFO3 inside if a script/user wants to save as UFO2, which that is possible, then in your example the instance will have kerning group with UFO3 style group naming, that is not bad. The only reason why a rename back to MM names is nice, is if you want to edit kerning of that UFO file in MM afterwards... |
I'm fine with ending up with a UFO2 that has |
This issue comes from my workshop files, which were translated from UFO2 to UFO3 in Robofont. It’s possible that old-school kerning groups did stick around in them. If I can help with any kind of test scenario I’d be glad to – please let me know which kinds of files would be needed. |
Can you send me those files, and a designspace maybe? |
The FDK's test files can be found here https://github.com/adobe-type-tools/afdko/tree/develop/tests/makeinstancesufo_data/input |
Attached here. The input masters are UFO3 files, with |
The groups are copied from the default when kerning is calculated. So the copyGroups flag is not really flagging very much any more.
Otherwise it might be easier to just accept all groups from the default. |
With the latest changes I think things are working as expected. |
Relates to adobe-type-tools/afdko#753