smart_unicode für fonterkenung hinzugefügt
This commit is contained in:
+1
-2
@@ -10,7 +10,7 @@ import optparse
|
||||
import os
|
||||
import ConfigParser
|
||||
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
|
||||
|
||||
class PicError(Exception):
|
||||
@@ -133,7 +133,6 @@ class Font:
|
||||
content = dict(fontconfig.items(letter))
|
||||
# lade das svg template dazu ein
|
||||
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