- Fontconfig korrigiert
This commit is contained in:
+4
-2
@@ -110,7 +110,8 @@ class Glyph:
|
||||
return float(self.GetAttribute('ystep'))
|
||||
def GetSVG(self, content):
|
||||
t = Template(self.template)
|
||||
return t.substitute(content)
|
||||
svg = t.substitute(content)
|
||||
return svg
|
||||
|
||||
class Font:
|
||||
"""enthaelt alle Daten zu einem Font """
|
||||
@@ -119,9 +120,10 @@ class Font:
|
||||
self.path = font_path
|
||||
self.glyphs = dict()
|
||||
|
||||
fontconfig = ConfigParser.RawConfigParser()
|
||||
fontconfig = ConfigParser.ConfigParser()
|
||||
config_path = os.path.join(font_path, fontname+'.cfg')
|
||||
fontconfig.read(config_path)
|
||||
fontconfig.optionxform = str
|
||||
|
||||
# lies alle Zeichen des Fonts ein
|
||||
for letter in fontconfig.sections():
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user