Commit 641c59e 1 parent fa24601 commit 641c59e Copy full SHA for 641c59e
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -183,11 +183,11 @@ def create_social_card_objects(
183
183
"""Create the Matplotlib objects for the first time."""
184
184
# If no font specified, load the Roboto Flex font as a fallback
185
185
if font is None :
186
- path_font = Path (__file__ ).parent / "_static/Roboto-flex .ttf"
186
+ path_font = Path (__file__ ).parent / "_static/Roboto-Flex .ttf"
187
187
roboto_font = matplotlib .font_manager .FontEntry (
188
- fname = str (path_font ), name = "Roboto"
188
+ fname = str (path_font ), name = "Roboto Flex "
189
189
)
190
- matplotlib .font_manager .fontManager .ttflist . append ( roboto_font )
190
+ matplotlib .font_manager .fontManager .addfont ( path_font )
191
191
font = roboto_font .name
192
192
193
193
# Because Matplotlib doesn't let you specify figures in pixels, only inches
You can’t perform that action at this time.
0 commit comments