You sometimes run into oldschool fonts encoded as bitmap arrays (1, 2)
e.g.:
This snippet works well to get the position in the page corresponding to a character:
def char_to_pos(char: str) -> tuple:
= int(bytearray(char, "cp437")[0])
num = num // 16
row = num % 16
col return (row, col)