Erik van Blokland 3646055ea2 initial import
git-svn-id: http://svn.robofab.com/trunk@1 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-07 17:40:34 +00:00

25 lines
606 B
Python
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# robothon 2006
# get info attributes for all fonts
# and dump them to a text file
from robofab.world import AllFonts
from robofab.interface.all.dialogs import PutFile
text = []
for font in AllFonts():
text.append(str(font.path))
text.append(str(font.info.familyName))
text.append(str(font.info.styleName))
text.append(str(font.info.fullName))
text.append(str(font.info.unitsPerEm))
text.append(str(font.info.ascender))
text.append(str(font.info.descender))
text.append('')
text = '\n'.join(text)
path = PutFile('Save file as:')
if path:
file = open(path, 'w')
file.write(text)
file.close()