We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
curses
1 parent 04ece19 commit 0a4e42dCopy full SHA for 0a4e42d
fontbro/font.py
@@ -8,7 +8,6 @@
8
import tempfile
9
from collections import Counter
10
from collections.abc import Generator
11
-from curses import ascii
12
from io import BytesIO
13
from pathlib import Path
14
from typing import IO, Any, cast
@@ -550,7 +549,9 @@ def get_characters(
550
549
char = chr(code)
551
else:
552
continue
553
- if ascii.iscntrl(char):
+ # check if is control character
+ char_code = ord(char)
554
+ if char_code < 0x20 or char_code == 0x7F:
555
556
if glyfs and ignore_blank:
557
glyf = glyfs.get(char_name)
0 commit comments