mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 10:46:16 +03:00
Handle PCF fonts files with missing characters
This commit is contained in:
parent
5fc3b6e5bb
commit
f160e698a1
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user