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 e6479bd + 3431a22 commit 0d4c60bCopy full SHA for 0d4c60b
lib/matplotlib/backends/backend_pgf.py
@@ -50,7 +50,7 @@ def get_fontspec():
50
# 1) Forward slashes also work on Windows, so don't mess with
51
# backslashes. 2) The dirname needs to include a separator.
52
path = pathlib.Path(fm.findfont(family))
53
- latex_fontspec.append(r"\%s{%s}[Path=%s]" % (
+ latex_fontspec.append(r"\%s{%s}[Path=\detokenize{%s}]" % (
54
command, path.name, path.parent.as_posix() + "/"))
55
56
return "\n".join(latex_fontspec)
0 commit comments