Merge remote-tracking branch 'radarhere/handle_pcf_missing_characters' into handle_pcf_missing_characters

This commit is contained in:
Andrew Murray 2022-06-25 21:30:57 +10:00
commit ce486e77b1

View File

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