summaryrefslogtreecommitdiff
path: root/src/sliceitoff/images
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-20 16:59:13 +0200
committerViljami Ilola <+@hix.fi>2024-03-20 16:59:13 +0200
commit398eebe7829622c6983cb28528f2208b4d596f32 (patch)
tree411f5d2fa3b7fc8b5352bc3cda49621fbd858919 /src/sliceitoff/images
parent191110be33196866998da385fbc3107344d2bf73 (diff)
text to srites. cache scaled font sprites...
Diffstat (limited to 'src/sliceitoff/images')
-rw-r--r--src/sliceitoff/images/fonts.py2
1 files changed, 1 insertions, 1 deletions
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]