We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f9b76b commit d5403fbCopy full SHA for d5403fb
lib/matplotlib/font_manager.py
@@ -391,14 +391,14 @@ def ttfFontProperty(font):
391
sfnt2 = sfnt.get((1,0,0,2))
392
sfnt4 = sfnt.get((1,0,0,4))
393
if sfnt2:
394
- sfnt2 = sfnt2.lower()
+ sfnt2 = sfnt2.decode('ascii').lower()
395
else:
396
sfnt2 = ''
397
if sfnt4:
398
- sfnt4 = sfnt4.lower()
+ sfnt4 = sfnt4.decode('ascii').lower()
399
400
sfnt4 = ''
401
- if sfnt4.find('oblique') >= 0:
+ if sfnt4.find('oblique') >= 0:
402
style = 'oblique'
403
elif sfnt4.find('italic') >= 0:
404
style = 'italic'
0 commit comments