From c2432fdf4c3b60e579aef7e8a8a4f84e371f7734 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Mon, 18 Mar 2024 17:06:24 +0200 Subject: statusline --- src/sliceitoff/images/fonts.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/sliceitoff/images/fonts.py') 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] -- cgit v1.2.3