- Fassung mit sonderzeichen eingecheckt

This commit is contained in:
Eva Möller
2012-08-16 13:12:03 +02:00
parent 0eea7c1481
commit 32c1a745b7
89 changed files with 5242 additions and 2783 deletions
+2 -3
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_unicode, smart_str
from django.utils.encoding import smart_unicode, smart_str
from string import Template
class PicError(Exception):
@@ -121,7 +121,6 @@ class Font:
self.name = fontname
self.path = font_path
self.glyphs = dict()
fontconfig = ConfigParser.ConfigParser()
config_path = os.path.join(font_path, fontname+'.cfg')
fontconfig.read(config_path)
@@ -142,7 +141,7 @@ class Font:
def __repr__(self):
return repr(self.glyphs)
def GlyphGet(self, glyphname):
return self.glyphs[glyphname]
return self.glyphs[smart_str(glyphname)]
def init_fonts( config ):
''' lädt alle benötigten Fonts für den Auftrag in den Speicher