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 6d49b51

Browse filesBrowse files
committed
PGF: Use \familydefault instead of \rmfamily if pgf.rcfonts=False
1 parent 0fec213 commit 6d49b51
Copy full SHA for 6d49b51

File tree

1 file changed

+1
-1
lines changed
Filter options

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
@@ -110,7 +110,7 @@ def _escape_and_apply_props(s, prop):
110110
if family in families:
111111
commands.append(families[family])
112112
elif not mpl.rcParams["pgf.rcfonts"]:
113-
commands.append(r"\rmfamily")
113+
commands.append(r"\fontfamily{\familydefault}")
114114
elif any(font.name == family for font in fm.fontManager.ttflist):
115115
commands.append(
116116
r"\ifdefined\pdftexversion\else\setmainfont{%s}\rmfamily\fi" % family)

0 commit comments

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