Skip to content

Commit 03775bb

Browse files
committed
Merge pull request #6714 from deeenes/patch-1
FIX: Correctly identify OTF fonts fixed font_manager.is_opentype_cff_font()
1 parent 3f72974 commit 03775bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/font_manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,7 @@ def is_opentype_cff_font(filename):
13381338
if result is None:
13391339
with open(filename, 'rb') as fd:
13401340
tag = fd.read(4)
1341-
result = (tag == 'OTTO')
1341+
result = (tag == b'OTTO')
13421342
_is_opentype_cff_font_cache[filename] = result
13431343
return result
13441344
return False

0 commit comments

Comments
 (0)