10000
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 ab782ba commit a30b491Copy full SHA for a30b491
lib/matplotlib/font_manager.py
@@ -409,13 +409,20 @@ def ttfFontProperty(font):
409
410
sfnt = font.get_sfnt()
411
sfnt2 = sfnt.get((1,0,0,2))
412
+ sfnt2_3 = sfnt.get((3,1,1033,2))
413
sfnt4 = sfnt.get((1,0,0,4))
414
+ sfnt4_3 = sfnt.get((3,1,1033,4))
415
if sfnt2:
416
sfnt2 = sfnt2.decode('macroman').lower()
417
+ elif sfnt2_3:
418
+ sfnt2 = sfnt2_3.decode('utf_16_be').lower()
419
else:
420
sfnt2 = ''
421
+
422
if sfnt4:
423
sfnt4 = sfnt4.decode('macroman').lower()
424
+ elif sfnt4_3:
425
+ sfnt4 = sfnt4_3.decode('utf_16_be').lower()
426
427
sfnt4 = ''
428
if sfnt4.find('oblique') >= 0:
0 commit comments