This commit is contained in:
Michael Droettboom 2018-05-17 15:31:28 -04:00
parent 14db9e693c
commit 57478053ed
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ diff -ur matplotlib-2.2.2/lib/matplotlib/font_manager.py matplotlib-2.2.2/lib/ma
- sfnt4 = sfnt4.decode('mac_roman').lower()
+ try:
+ sfnt4 = sfnt4.decode('mac_roman').lower()
+ except LoopupError:
+ except LookupError:
+ sfnt4 = sfnt4.decode('latin1').lower()
else:
sfnt4 = ''