Created
February 27, 2019 20:20
-
-
Save okay-type/2e6a87499658e9e6bc18e64ceb599f5b to your computer and use it in GitHub Desktop.
show-one-glyph-for-each-selected-component.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mojo.UI import CurrentSpaceCenter | |
f = CurrentFont() | |
sc = CurrentSpaceCenter() | |
s = '' | |
for g in f.selectedGlyphNames: | |
n = 0 | |
for x in f.lib['public.glyphOrder']: | |
if n == 0: | |
if f[x].name != f[g].name: | |
for c in f[x].components: | |
if c.baseGlyph == f[g].name: | |
s += '/' + f[x].name | |
n = 1 | |
sc.setRaw(s+' ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment