Commit 976a0111 authored by Whitham D. Reeve II's avatar Whitham D. Reeve II

Fixed yet another casualty of the move from Point object to point tuple.

parent 6d9954cd
...@@ -105,7 +105,7 @@ class Charset(object): ...@@ -105,7 +105,7 @@ class Charset(object):
align=None): align=None):
result = ContourModel() result = ContourModel()
if origin is None: if origin is None:
origin = Point(0, 0, 0) origin = (0, 0, 0)
if align is None: if align is None:
align = TEXT_ALIGN_LEFT align = TEXT_ALIGN_LEFT
base = origin base = origin
...@@ -118,7 +118,8 @@ class Charset(object): ...@@ -118,7 +118,8 @@ class Charset(object):
line_height = self.default_height line_height = self.default_height
for character in line: for character in line:
if character == " ": if character == " ":
base = base.add(Point(word_spacing, 0, 0)) base = padd(base, (word_spacing, 0, 0))
#base = base.add(Point(word_spacing, 0, 0))
elif character in self.letters.keys(): elif character in self.letters.keys():
charset_letter = self.letters[character] charset_letter = self.letters[character]
new_model = ContourModel() new_model = ContourModel()
...@@ -131,8 +132,8 @@ class Charset(object): ...@@ -131,8 +132,8 @@ class Charset(object):
# update line height # update line height
line_height = max(line_height, charset_letter.maxy()) line_height = max(line_height, charset_letter.maxy())
# shift the base position # shift the base position
base = base.add(( base = padd(base, (charset_letter.maxx() + letter_spacing, 0, 0))
charset_letter.maxx() + letter_spacing, 0, 0)) #base = base.add((charset_letter.maxx() + letter_spacing, 0, 0))
else: else:
# unknown character - add a small whitespace # unknown character - add a small whitespace
base = padd(base, (letter_spacing, 0, 0)) base = padd(base, (letter_spacing, 0, 0))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment