Skip to content

Commit b6cde63

Browse files
CemonixQuLogic
andcommitted
Fixed the encoding string to match the rest of the file.
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent af4ded1 commit b6cde63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/font_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,8 @@ def _try_add(name, subfam):
601601
sfnt.get((*mac_key, subfam_id), b'').decode('latin-1'),
602602
)
603603
_try_add(
604-
sfnt.get((*ms_key, fam_id), b'').decode('utf_16_be'),
605-
sfnt.get((*ms_key, subfam_id), b'').decode('utf_16_be'),
604+
sfnt.get((*ms_key, fam_id), b'').decode('utf-16-be'),
605+
sfnt.get((*ms_key, subfam_id), b'').decode('utf-16-be'),
606606
)
607607

608608
return result

0 commit comments

Comments
 (0)