Handle PCF fonts files with missing characters

This commit is contained in:
Dawid Crivelli 2022-06-20 16:20:08 +02:00
parent 5fc3b6e5bb
commit f160e698a1

View File

@ -241,7 +241,7 @@ class PcfFontFile(FontFile.FontFile):
]
if encoding_offset != 0xFFFF:
encoding[i] = encoding_offset
except UnicodeDecodeError:
except (UnicodeDecodeError, IndexError):
# character is not supported in selected encoding
pass