From 398eebe7829622c6983cb28528f2208b4d596f32 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Wed, 20 Mar 2024 16:59:13 +0200 Subject: text to srites. cache scaled font sprites... --- src/sliceitoff/images/fonts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sliceitoff/images/fonts.py') diff --git a/src/sliceitoff/images/fonts.py b/src/sliceitoff/images/fonts.py index 98aa6e6..a1687b6 100644 --- a/src/sliceitoff/images/fonts.py +++ b/src/sliceitoff/images/fonts.py @@ -36,4 +36,4 @@ class Font: self.surfaces.append(surface) def get(self, ch): - return self.surfaces[ord(ch)%256] + return self.surfaces[ch%256] -- cgit v1.2.3