zahl startet bei 1 nach ' ' und großbuchstaben
This commit is contained in:
@@ -163,6 +163,8 @@ class Word:
|
|||||||
content = dict()
|
content = dict()
|
||||||
content['posy'] = y
|
content['posy'] = y
|
||||||
g = self.font.GlyphGet(c)
|
g = self.font.GlyphGet(c)
|
||||||
|
if c ==' ' or c.isupper() :
|
||||||
|
counter = 0
|
||||||
content['posx'] = str(x)
|
content['posx'] = str(x)
|
||||||
# die Position ist erst für den nächsten Buchstaben relevant
|
# die Position ist erst für den nächsten Buchstaben relevant
|
||||||
x = g.GetLength() + x + glyph_space
|
x = g.GetLength() + x + glyph_space
|
||||||
@@ -171,6 +173,7 @@ class Word:
|
|||||||
if params['counter_replace']:
|
if params['counter_replace']:
|
||||||
xn = g.GetAttribute('npattern')
|
xn = g.GetAttribute('npattern')
|
||||||
for i in range(1, int(xn)+1):
|
for i in range(1, int(xn)+1):
|
||||||
|
|
||||||
counter = counter + 1
|
counter = counter + 1
|
||||||
content['x'+str(i)] = counter
|
content['x'+str(i)] = counter
|
||||||
svgstr = svgstr + g.GetSVG(content)
|
svgstr = svgstr + g.GetSVG(content)
|
||||||
|
|||||||
Reference in New Issue
Block a user