8000
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 922c950 + 179f5f0 commit d0c2f66Copy full SHA for d0c2f66
lib/matplotlib/backends/backend_pgf.py
@@ -141,7 +141,8 @@ def _font_properties_str(prop):
141
family = prop.get_family()[0]
142
if family in families:
143
commands.append(families[family])
144
- elif family in system_fonts and rcParams["pgf.texsystem"] != "pdflatex":
+ elif (any(font.name == family for font in fm.fontManager.ttflist)
145
+ and rcParams["pgf.texsystem"] != "pdflatex"):
146
commands.append(r"\setmainfont{%s}\rmfamily" % family)
147
else:
148
pass # print warning?
0 commit comments