diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-20 16:59:13 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-20 16:59:13 +0200 |
commit | 398eebe7829622c6983cb28528f2208b4d596f32 (patch) | |
tree | 411f5d2fa3b7fc8b5352bc3cda49621fbd858919 /src/sliceitoff/images/fonts.py | |
parent | 191110be33196866998da385fbc3107344d2bf73 (diff) |
text to srites. cache scaled font sprites...
Diffstat (limited to 'src/sliceitoff/images/fonts.py')
-rw-r--r-- | src/sliceitoff/images/fonts.py | 2 |
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] |