Created
April 21, 2015 13:09
-
-
Save marcdama/9973fcfa9071ed4934ab to your computer and use it in GitHub Desktop.
Convert glyphs to fixed width (1000) optically
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 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