mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-28 02:04:36 +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:
|
if encoding_offset != 0xFFFF:
|
||||||
encoding[i] = encoding_offset
|
encoding[i] = encoding_offset
|
||||||
except UnicodeDecodeError:
|
except (UnicodeDecodeError, IndexError):
|
||||||
# character is not supported in selected encoding
|
# character is not supported in selected encoding
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user