12 lines
339 B
Python
12 lines
339 B
Python
#FLM: Kerning Counter
|
|
|
|
"""print kerning counts for glyphs selected in the font window"""
|
|
|
|
from robofab.world import CurrentFont
|
|
|
|
font = CurrentFont()
|
|
selectedGlyphs = font.selection
|
|
kerning = font.kerning
|
|
counts = kerning.occurrenceCount(selectedGlyphs)
|
|
for glyphName in selectedGlyphs:
|
|
print "%s: %s pairs"%(glyphName, counts[glyphName]) |