From daaa8b1d719cb1cde761fa9a057215dac31213b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eva=20M=C3=B6ller?= Date: Thu, 16 Aug 2012 16:53:40 +0200 Subject: [PATCH] fontsuche in .cfg nach fontname --- libs/piccreate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/piccreate.py b/libs/piccreate.py index 1d9e395..005b97c 100644 --- a/libs/piccreate.py +++ b/libs/piccreate.py @@ -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()