# ReType's Make string kerning lists for MetricsMachine # Tweak / Comment from line 4 to 7 if you are using a PC. import sys sys.dont_write_bytecode = True f = open(title + '.txt', 'w') sys.stdout = f # Set the title title = 'UC_symmetry' # Set your own strings string_1 = 'AVAWATAYAVSVSWSW' string_2 = 'AOAQAPAFASAYSY' string_3 = 'OVOWOTOYO' print '#KPL:W: '+ title for x in range((len(string_1))-1): stringlist = list(string_1) stringlist.insert(x+1,' ') print ''.join(stringlist) for x in range((len(string_2))-1): stringlist = list(string_2) stringlist.insert(x+1,' ') print ''.join(stringlist) for x in range((len(string_3))-1): stringlist = list(string_3) stringlist.insert(x+1,' ') print ''.join(stringlist)
Comments
I just updated my script so it now can take strings set with slashes (for example: "/one.lf/period/two.lf/period ...etc"
Now it is way simpler to adapt your Fontlab strings to MetricsMachine
Thanks for the contribution. I should have said I wasn't running the script from Robofont or Fontlab. It was intended to be run with Terminal (actually, I do it from TextWrangler).