fontsuche in .cfg nach fontname

This commit is contained in:
Eva Möller
2012-08-16 16:53:40 +02:00
parent 90aa709bdd
commit daaa8b1d71
+2 -1
View File
@@ -131,7 +131,8 @@ class Font:
# hol die Fontattribute wie Ausdehnung usw. # hol die Fontattribute wie Ausdehnung usw.
content = dict(fontconfig.items(letter)) content = dict(fontconfig.items(letter))
# lade das svg template dazu ein # lade das svg template dazu ein
glyph_path = os.path.join( font_path, letter+'.svg') glyph_path = os.path.join( font_path, smart_unicode(content['fontname']))
print content['fontname']
f = open(glyph_path, 'r') f = open(glyph_path, 'r')
svgstr = f.read() svgstr = f.read()
f.close() f.close()