diff options
Diffstat (limited to 'helpers/font.py')
-rw-r--r-- | helpers/font.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/helpers/font.py b/helpers/font.py deleted file mode 100644 index 83999ef..0000000 --- a/helpers/font.py +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | import os | ||
2 | import pygame | ||
3 | import sys | ||
4 | |||
5 | def font(size, font = "Ubuntu-Regular"): | ||
6 | if getattr(sys, 'frozen', False): | ||
7 | return pygame.font.Font(sys._MEIPASS + "/fonts/" + font + ".ttf", size) | ||
8 | else: | ||
9 | path = os.path.dirname(os.path.realpath(__file__)) | ||
10 | return pygame.font.Font(path + "/../fonts/" + font + ".ttf", size) | ||