From f9c50d8ed657fe5ea253804ae900ecdd5718ce36 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Sun, 11 May 2014 23:01:54 +0200 Subject: [PATCH] Even blocker text --- naja/widgets/text.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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): -- 2.34.1