fontsuche in .cfg nach fontname
This commit is contained in:
+2
-1
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user