fontsuche in .cfg nach fontname
This commit is contained in:
1 parent
90aa709bdd
commit
daaa8b1d71
1 file changed
+2
-1
+2
-1
@@ -131,7 +131,8 @@ class Font:
|
||||
# hol die Fontattribute wie Ausdehnung usw.
|
||||
content = dict(fontconfig.items(letter))
|
||||
# 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')
|
||||
svgstr = f.read()
|
||||
f.close()
|
||||
|
||||
Reference in new issue
Block a user