Skip to content

Instantly share code, notes, and snippets.

@benkiel
Created December 7, 2011 16:47
Show Gist options
  • Save benkiel/1443542 to your computer and use it in GitHub Desktop.
Save benkiel/1443542 to your computer and use it in GitHub Desktop.
Goes through all open fonts to find out if the font uses a component. Useful to run if you're thinking of changing the spacing of a accent and you don't want everything to go all wonky.
from robofab.world import AllFonts
fonts = AllFonts()
for font in fonts:
print font.info.postscriptFullName
for glyph in font:
if len(glyph.components) != 0:
for c in glyph.components:
if c.baseGlyph == 'uni0361':
print 'uni0361 in ' + glyph.name
continue
print 'done'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment