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
Show Kerning Pairs.py not working with groups #3
Comments
Ah yep this is out of date I since made a version with a kerning group dictionary... will upload eventually |
Trying these scripts again for G3 – 3.0.3 (3091)
However, now I am getting this:
The related Show Kerning Pairs as Left/Right Glyphs are also not working. They run but the result is an empty tab. Would it be possible to update these scripts? Or, any suggestions on how to solve these errors? |
Ok interesting, do you get the same error when you run "Show Kerning Pairs Context.py" ? Because I don't get the error. BUT if I copy the same code to another file with a different menu title, I do... strange. Going to look into it. |
Ok these should work! Try these... |
The "Show Kerning Pairs" seems to be semi-working now. For some reason, it is working for Latin but when I try it for Armenian the right pair is blank. I was fiddling around with this more yesterday. Using Toshi's "New Tab with Unlocked Kerning Pairs" as a reference...I got something working. Haven't had ample time to test it or clean up but the code but feel free to check it out. |
I've noticed an issue with Show Kerning Pairs.py. Kerning pairs which have a group name, other than its glyph name, are shown blank.
From what I can tell the if statement of the nameMaker() function returns the names of the kerning groups, and those names are then added into the kernPair string
kernPair = "/%s/%s " % (thisGlyphName, nameMaker(R))
Does there have to be an additional loop of listing what at the members of each kerning group?I've tried modifying the code by adding a loop that checks which glyphs are members of the returned kerning groups and inserting those into the string. I've got it working somewhat but have a feeling that there are things it may be missing. In any case, I've included the code below.
The issue is also posted in the Glyphs forum: https://forum.glyphsapp.com/t/show-kerning-pairs/10729/5
The text was updated successfully, but these errors were encountered: