- Abstand der Buchstaben als Parameter auslesen

This commit is contained in:
Michael Stangl
2012-07-31 18:12:35 +02:00
parent a98c28107f
commit 0eea7c1481
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -75,6 +75,7 @@ class Word:
word_length = self.calc_length()
x = float(params['x'] + word_length - params['length'])
y = params['y']
glyph_space = float(params['glyph_space'])
svgstr = ''
counter = 0
@@ -84,7 +85,7 @@ class Word:
g = self.font.GlyphGet(c)
content['posx'] = str(x)
# die Position ist erst für den nächsten Buchstaben relevant
x = g.GetLength() + x +30
x = g.GetLength() + x + glyph_space
# wenn im Buchstaben Platzhalter (x1, x2, x3,...) drin sind, dann
# diese durch den aktuellen Zählerstand ersetzen
if params['counter_replace']: