smart_unicode für fonterkenung hinzugefügt
This commit is contained in:
+1
-2
@@ -10,7 +10,7 @@ import optparse
|
|||||||
import os
|
import os
|
||||||
import ConfigParser
|
import ConfigParser
|
||||||
from utils import CSVImport, CompleteEnding, get_translation
|
from utils import CSVImport, CompleteEnding, get_translation
|
||||||
from django.utils.encoding import smart_str
|
from django.utils.encoding import smart_str, smart_unicode
|
||||||
from string import Template
|
from string import Template
|
||||||
|
|
||||||
class PicError(Exception):
|
class PicError(Exception):
|
||||||
@@ -133,7 +133,6 @@ class Font:
|
|||||||
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, smart_unicode(content['fontname']))
|
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