- Fassung mit sonderzeichen eingecheckt
This commit is contained in:
+2
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user