Skip to content

Instantly share code, notes, and snippets.

@marcdama
Last active August 29, 2015 14:26
Show Gist options
  • Save marcdama/849c9bebf3d0a4660b20 to your computer and use it in GitHub Desktop.
Save marcdama/849c9bebf3d0a4660b20 to your computer and use it in GitHub Desktop.
from robofab.world import *
'''Transfer the first loaded fonts names to the second loaded font'''
f = AllFonts()
good_names = {}
for i in f[0]:
good_names[i.index] = i.name
for i in f[1]:
if i.index in good_names:
i.name = good_names[i.index]
i.mark = 40
f[1].update()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment