Skip to content

Commit 5a0dae6

Browse files
committed
Don't encode because it breaks unicode values.
1 parent af0ba1d commit 5a0dae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_bitmap_font/bdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def load_glyphs(self, code_points):
9393
remaining = set()
9494
remaining.add(code_points)
9595
elif isinstance(code_points, str):
96-
remaining = set(code_points.encode("utf-8"))
96+
remaining = set(ord(c) for c in code_points)
9797
elif isinstance(code_points, set):
9898
remaining = code_points
9999
else:

0 commit comments

Comments
 (0)