Skip to content

Commit

Permalink
Merge pull request #6714 from deeenes/patch-1
Browse files Browse the repository at this point in the history
FIX:  Correctly identify OTF fonts

fixed font_manager.is_opentype_cff_font()
  • Loading branch information
tacaswell committed Jul 12, 2016
1 parent 3f72974 commit 03775bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/font_manager.py
Expand Up @@ -1338,7 +1338,7 @@ def is_opentype_cff_font(filename):
if result is None:
with open(filename, 'rb') as fd:
tag = fd.read(4)
result = (tag == 'OTTO')
result = (tag == b'OTTO')
_is_opentype_cff_font_cache[filename] = result
return result
return False
Expand Down

0 comments on commit 03775bb

Please sign in to comment.