mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 21:24:31 +03:00
Merge remote-tracking branch 'radarhere/handle_pcf_missing_characters' into handle_pcf_missing_characters
This commit is contained in:
commit
ce486e77b1
|
@ -241,8 +241,10 @@ class PcfFontFile(FontFile.FontFile):
|
||||||
]
|
]
|
||||||
if encoding_offset != 0xFFFF:
|
if encoding_offset != 0xFFFF:
|
||||||
encoding[i] = encoding_offset
|
encoding[i] = encoding_offset
|
||||||
except (UnicodeDecodeError, IndexError):
|
except UnicodeDecodeError:
|
||||||
# character is not supported in selected encoding
|
# character is not supported in selected encoding
|
||||||
pass
|
pass
|
||||||
|
except IndexError:
|
||||||
|
break
|
||||||
|
|
||||||
return encoding
|
return encoding
|
||||||
|
|
Loading…
Reference in New Issue
Block a user