- Fontconfig korrigiert

This commit is contained in:
Michael Stangl
2012-07-29 22:14:55 +02:00
parent 17444cfe3b
commit c95ad8214f
8 changed files with 75 additions and 3861 deletions
+4 -2
View File
@@ -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():
BIN
View File
Binary file not shown.