X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fwidgets%2Ftext.py;h=6862b968907ec7132a15bc1a01f509e63d446e45;hb=84c542f883e16a7f40c70e8a7096b92c063a0e7f;hp=4cc4272f7435d9a7bf16ef530a3c1bb004a29c7a;hpb=ae063f219281b426fc31f6fb4becec845ab4549a;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: