projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
16d8d61
)
No padding required.
author
Simon Cross
<hodgestar@gmail.com>
Sat, 17 May 2014 21:33:35 +0000
(23:33 +0200)
committer
Simon Cross
<hodgestar@gmail.com>
Sat, 17 May 2014 21:33:49 +0000
(23:33 +0200)
naja/widgets/text.py
patch
|
blob
|
history
diff --git
a/naja/widgets/text.py
b/naja/widgets/text.py
index b976f2a08b972a6d32b15109fc2ef03b2d6019f7..af7f0ac55c11b898b103363aec27dcde9c855e12 100644
(file)
--- a/
naja/widgets/text.py
+++ b/
naja/widgets/text.py
@@
-158,15
+158,14
@@
class TextBoxWidget(TextWidget):
def _prepare_glyph(self, glyph, current_words):
glyphs = []
size = self.font.size(' '.join(current_words[:-1] + ['']))
def _prepare_glyph(self, glyph, current_words):
glyphs = []
size = self.font.size(' '.join(current_words[:-1] + ['']))
- x = size[0] * EIGHT_BIT_SCALE + self.padding
- y = 0
+ x = size[0] * EIGHT_BIT_SCALE
for glyph_key in glyph.glyph_keys:
image_name, colour = MARKUP_MAP[glyph_key]
if colour is None:
colour = self.colour
image = resources.get_image(
image_name, transforms=(EIGHT_BIT, blender(colour)))
for glyph_key in glyph.glyph_keys:
image_name, colour = MARKUP_MAP[glyph_key]
if colour is None:
colour = self.colour
image = resources.get_image(
image_name, transforms=(EIGHT_BIT, blender(colour)))
- glyphs.append(((x,
y
), image))
+ glyphs.append(((x,
0
), image))
x += image.get_width()
return glyphs
x += image.get_width()
return glyphs