Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save marcdama/9973fcfa9071ed4934ab to your computer and use it in GitHub Desktop.
Save marcdama/9973fcfa9071ed4934ab to your computer and use it in GitHub Desktop.
Convert glyphs to fixed width (1000) optically
from robofab.world import *
f = CurrentFont()
for i in f.selection:
w = 1000 - f[i].width
f[i].leftMargin += w/2
f[i].rightMargin += w/2
f.update()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment