X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fwidgets%2Ftext.py;fp=naja%2Fwidgets%2Ftext.py;h=6862b968907ec7132a15bc1a01f509e63d446e45;hb=3e460450c1baa9af43f5391ba4673a599071656b;hp=4cc4272f7435d9a7bf16ef530a3c1bb004a29c7a;hpb=641b5f0ed7606c551a26a7336f2c4ab66006e7d7;p=naja.git diff --git a/naja/widgets/text.py b/naja/widgets/text.py index 4cc4272..6862b96 100644 --- a/naja/widgets/text.py +++ b/naja/widgets/text.py @@ -170,7 +170,7 @@ class TextBoxWidget(TextWidget): def _wrapped_lines(self, image_map): def words_fit(words): words_line = ' '.join(words) - width = self.font.size(words_line)[0] + width = self.font.size(words_line)[0] * EIGHT_BIT_SCALE if width < self.box_width: return True elif len(words) == 1: