Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3431a22

Browse filesBrowse files
committed
Fix PGF with special character paths.
Fixes #17765.
1 parent e6479bd commit 3431a22
Copy full SHA for 3431a22

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/backends/backend_pgf.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_pgf.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def get_fontspec():
5050
# 1) Forward slashes also work on Windows, so don't mess with
5151
# backslashes. 2) The dirname needs to include a separator.
5252
path = pathlib.Path(fm.findfont(family))
53-
latex_fontspec.append(r"\%s{%s}[Path=%s]" % (
53+
latex_fontspec.append(r"\%s{%s}[Path=\detokenize{%s}]" % (
5454
command, path.name, path.parent.as_posix() + "/"))
5555

5656
return "\n".join(latex_fontspec)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.