We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa24601 commit 641c59eCopy full SHA for 641c59e
sphinxext/opengraph/socialcards.py
@@ -183,11 +183,11 @@ def create_social_card_objects(
183
"""Create the Matplotlib objects for the first time."""
184
# If no font specified, load the Roboto Flex font as a fallback
185
if font is None:
186
- path_font = Path(__file__).parent / "_static/Roboto-flex.ttf"
+ path_font = Path(__file__).parent / "_static/Roboto-Flex.ttf"
187
roboto_font = matplotlib.font_manager.FontEntry(
188
- fname=str(path_font), name="Roboto"
+ fname=str(path_font), name="Roboto Flex"
189
)
190
- matplotlib.font_manager.fontManager.ttflist.append(roboto_font)
+ matplotlib.font_manager.fontManager.addfont(path_font)
191
font = roboto_font.name
192
193
# Because Matplotlib doesn't let you specify figures in pixels, only inches
0 commit comments