Skip to content

Instantly share code, notes, and snippets.

@okay-type
Created February 19, 2019 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okay-type/15cf85a60968290bc3e62502b44724fc to your computer and use it in GitHub Desktop.
Save okay-type/15cf85a60968290bc3e62502b44724fc to your computer and use it in GitHub Desktop.
space center show-glyphs-with-selected-as-components
from mojo.UI import CurrentSpaceCenter
f = CurrentFont()
sc = CurrentSpaceCenter()
s = ''
for g in f.selectedGlyphNames:
s += '/' + f[g].name
for x in f.lib['public.glyphOrder']:
if f[x].name != f[g].name:
for c in f[x].components:
if c.baseGlyph == f[g].name:
s += '/' + f[x].name
sc.setRaw(s+' ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment