Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2920408 + 2415c62 commit 3d65613Copy full SHA for 3d65613
lib/matplotlib/font_manager.py
@@ -1289,11 +1289,12 @@ def fc_match(pattern, fontext):
1289
if pipe.returncode == 0:
1290
for match in _fc_match_regex.finditer(output):
1291
file = match.group(1)
1292
+ file = file.decode(sys.getfilesystemencoding())
1293
if os.path.splitext(file)[1][1:] in fontexts:
1294
return file
1295
return None
1296
- _fc_match_regex = re.compile(r'\sfile:\s+"([^"]*)"')
1297
+ _fc_match_regex = re.compile(rb'\sfile:\s+"([^"]*)"')
1298
_fc_match_cache = {}
1299
1300
def findfont(prop, fontext='ttf'):
0 commit comments