Skip to content

Commit

Permalink
Merge branch 'main' into add-3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Dec 14, 2023
2 parents 90355f1 + 641c59e commit 7d5d08c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
fail-fast: false
matrix:
python-version: ['pypy3.9', '3.8', '3.9', '3.10', '3.11', '3.12']
sphinx-version: ['>=4,<5', '>=5,<6', '>=6a0,<7']
sphinx-version: ['>=4,<5', '>=5,<6', '>=6a0,<7', '>=7,<8']
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions sphinxext/opengraph/socialcards.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ def create_social_card_objects(
"""Create the Matplotlib objects for the first time."""
# If no font specified, load the Roboto Flex font as a fallback
if font is None:
path_font = Path(__file__).parent / "_static/Roboto-flex.ttf"
path_font = Path(__file__).parent / "_static/Roboto-Flex.ttf"
roboto_font = matplotlib.font_manager.FontEntry(
fname=str(path_font), name="Roboto"
fname=str(path_font), name="Roboto Flex"
)
matplotlib.font_manager.fontManager.ttflist.append(roboto_font)
matplotlib.font_manager.fontManager.addfont(path_font)
font = roboto_font.name

# Because Matplotlib doesn't let you specify figures in pixels, only inches
Expand Down

0 comments on commit 7d5d08c

Please sign in to comment.