From: Simon Cross Date: Sat, 17 May 2014 21:33:35 +0000 (+0200) Subject: No padding required. X-Git-Tag: 0.1~15^2~9 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=947a8cc829ff63fa745ea627d5670c1ab3546390;p=naja.git No padding required. --- diff --git a/naja/widgets/text.py b/naja/widgets/text.py index b976f2a..af7f0ac 100644 --- 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] + [''])) - 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))) - glyphs.append(((x, y), image)) + glyphs.append(((x, 0), image)) x += image.get_width() return glyphs