From: Stefano Rivera Date: Sun, 11 May 2014 21:01:54 +0000 (+0200) Subject: Even blocker text X-Git-Tag: 0.1~381 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=f9c50d8ed657fe5ea253804ae900ecdd5718ce36;p=naja.git Even blocker text --- diff --git a/naja/widgets/text.py b/naja/widgets/text.py index 74ca641..5af028d 100644 --- a/naja/widgets/text.py +++ b/naja/widgets/text.py @@ -13,15 +13,15 @@ class TextWidget(Widget): self.text = text self.fontname = fontname or FONT - self.fontsize = (fontsize or FONT_SIZE) / 2 + self.fontsize = (fontsize or FONT_SIZE) // 4 self.colour = convert_colour(colour or (0, 0, 0)) def prepare(self): self.font = resources.get_font(self.fontname, self.fontsize) text = self.font.render(self.text, True, self.colour) text_rect = text.get_rect() - self.surface = pygame.transform.scale(text, (text_rect.width * 2, - text_rect.height * 2)) + self.surface = pygame.transform.scale(text, (text_rect.width * 4, + text_rect.height * 4)) self.size = self.surface.get_rect().size def draw(self, surface):