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.
1 parent 98673a0 commit 896b280Copy full SHA for 896b280
lib/matplotlib/backends/backend_pgf.py
@@ -109,6 +109,8 @@ def _escape_and_apply_props(s, prop):
109
family = prop.get_family()[0]
110
if family in families:
111
commands.append(families[family])
112
+ elif not mpl.rcParams["pgf.rcfonts"]:
113
+ commands.append(r"\rmfamily")
114
elif any(font.name == family for font in fm.fontManager.ttflist):
115
commands.append(
116
r"\ifdefined\pdftexversion\else\setmainfont{%s}\rmfamily\fi" % family)
0 commit comments