summaryrefslogtreecommitdiff
path: root/src/sliceitoff/images/fonts.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sliceitoff/images/fonts.py')
-rw-r--r--src/sliceitoff/images/fonts.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/sliceitoff/images/fonts.py b/src/sliceitoff/images/fonts.py
index d3d15cf..98aa6e6 100644
--- a/src/sliceitoff/images/fonts.py
+++ b/src/sliceitoff/images/fonts.py
@@ -1,8 +1,6 @@
import os
import pygame
-from display import Scaling
-
DEBUG = os.getenv("DEBUG")
class Fonts:
@@ -15,7 +13,6 @@ class Fonts:
for line in fontlist_file:
name, *path = line.strip().split()
filename = os.path.join(base_path, *path)
- font = Font(filename)
__class__.fonts[name] = Font(filename)
return True
@@ -39,4 +36,4 @@ class Font:
self.surfaces.append(surface)
def get(self, ch):
- return self.surfaces[ch.encode('cp437')[0]%256]
+ return self.surfaces[ord(ch)%256]