Skip to content

Instantly share code, notes, and snippets.

@lucasdinonolte
Created October 7, 2018 17:34
Show Gist options
  • Save lucasdinonolte/f54e3e5399a2b1d9e010daee677790e6 to your computer and use it in GitHub Desktop.
Save lucasdinonolte/f54e3e5399a2b1d9e010daee677790e6 to your computer and use it in GitHub Desktop.
Glyphs App Batch Update Sidebearings by factor
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