diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-18 17:06:24 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-18 17:06:24 +0200 |
commit | c2432fdf4c3b60e579aef7e8a8a4f84e371f7734 (patch) | |
tree | fd756c0e6f11d11c8e816c31e2fa0eb0708e42a1 /src/sliceitoff/images | |
parent | 89bf2bf2197e44f0745bcae1400227c2999573cd (diff) |
statusline
Diffstat (limited to 'src/sliceitoff/images')
-rw-r--r-- | src/sliceitoff/images/fonts.py | 5 |
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] |