Created
October 7, 2018 17:34
-
-
Save lucasdinonolte/f54e3e5399a2b1d9e010daee677790e6 to your computer and use it in GitHub Desktop.
Glyphs App Batch Update Sidebearings by factor
This file contains hidden or 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
scale = 1.166666667 | |
for char in Glyphs.font.selectedLayers: | |
if char.LSB < 0: | |
char.LSB = round(char.LSB/scale) | |
else: | |
char.LSB = round(char.LSB*scale) | |
if char.RSB < 0: | |
char.RSB = round(char.RSB/scale) | |
else: | |
char.RSB = round(char.RSB*scale) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment