Closed tljk closed 2 years ago
I think your deduction is incorrect. The index can accept values up to 65535, and your font exceeds that. The following was issued under CPython 3.8.10:
>>> x = 4
>>> x.to_bytes(2, byteorder="little")
b'\x04\x00'
>>> x = 65535
>>> x.to_bytes(2, byteorder="little")
b'\xff\xff'
>>> x = 65536
>>> x.to_bytes(2, byteorder="little")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: int too big to convert
>>>
-l or --largest Ordinal value of largest character to be stored. Default 126.
so, what is the correct way to do so