smart_unicode für fonterkenung hinzugefügt

This commit is contained in:
Kamil Bugajski
2012-08-16 19:41:16 +02:00
parent 1e55b631a7
commit cae818ee8f
+1 -2
View File
@@ -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()