Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9e6bdcc

Browse files
CemonixQuLogic
andauthored
Fixed the encoding string to match the rest of the file.
Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent 837a43a commit 9e6bdcc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/font_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,8 @@ def _try_add(name, subfam):
537537
sfnt.get((*mac_key, subfam_id), b'').decode('latin-1'),
538538
)
539539
_try_add(
540-
sfnt.get((*ms_key, fam_id), b'').decode('utf_16_be'),
541-
sfnt.get((*ms_key, subfam_id), b'').decode('utf_16_be'),
540+
sfnt.get((*ms_key, fam_id), b'').decode('utf-16-be'),
541+
sfnt.get((*ms_key, subfam_id), b'').decode('utf-16-be'),
542542
)
543543

544544
return result

0 commit comments

Comments
 (0)