8000 Pass only first font for mathtext · matplotlib/matplotlib@df939d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit df939d5

Browse files
committed
Pass only first font for mathtext
1 parent 1235063 commit df939d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/_mathtext.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ def destroy(self):
242242
def _get_font(self, font):
243243
if font in self.fontmap:
244244
basename = self.fontmap[font]
245+
# TODO: allow multiple fonts
246+
# for now settle with the first element
247+
basename = next(iter(basename.values()))
245248
else:
246249
basename = font
247250
cached_font = self._fonts.get(basename)

0 commit comments

Comments
 (0)
0