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

Skip to content

Commit a18dd50

Browse files
authored
Merge pull request #6714 from deeenes/patch-1
FIX: Correctly identify OTF fonts fixed font_manager.is_opentype_cff_font()
2 parents bc72786 + c71420c commit a18dd50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/font_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ def is_opentype_cff_font(filename):
13521352
if result is None:
13531353
with open(filename, 'rb') as fd:
13541354
tag = fd.read(4)
1355-
result = (tag == 'OTTO')
1355+
result = (tag == b'OTTO')
13561356
_is_opentype_cff_font_cache[filename] = result
13571357
return result
13581358
return False

0 commit comments

Comments
 (0)