From 683445729b963536270a5ae00b3ae368216d92b1 Mon Sep 17 00:00:00 2001 From: Miguel Angel Astor Romero Date: Mon, 21 Jan 2013 21:55:56 -0430 Subject: [PATCH] Fixed the font size. --- ingame.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ingame.py b/ingame.py index 4d571cc..aa0bcbc 100644 --- a/ingame.py +++ b/ingame.py @@ -123,11 +123,7 @@ class InGameState(BaseState): self.vec_1 = (float(pygame.display.Info().current_w) - float(self.screen_center[0]), 0.0) self.vec_1 = math_utils.normalize_vector_2D(self.vec_1) - font_size = 22 - screen_prop = (float(font_size) / 768.0) - screen_fract = (float(pygame.display.Info().current_h) * screen_prop) / 768.0 - scale_factor = screen_fract / screen_prop - self.font = pygame.font.Font('font/ProfaisalEliteRiqa/Profaisal-EliteRiqaV1.0.ttf', int(font_size * scale_factor)) + self.font = pygame.font.Font('font/ProfaisalEliteRiqa/Profaisal-EliteRiqaV1.0.ttf', 22) self.score_text = self.font.render("Puntos: " + str(1000), True, (0, 0, 0)) self.time_text = self.font.render("Tiempo: " + str(190), True, (0, 0, 0))