wpilibsuite / sphinxext-opengraph

Sphinx extension to generate unique OpenGraph metadata
https://sphinxext-opengraph.readthedocs.io
Other
69 stars 25 forks source link

findfont: Font family 'Roboto' not found. #115

Closed madmiraal closed 7 months ago

madmiraal commented 7 months ago

This issue was previously raised in #107, but was closed in #110. However this is still an issue with sphinxext-opengraph==0.9.0; so I'm opening the issue again.

requirements.txt:

sphinx==7.2.6
sphinxext-opengraph==0.9.0
matplotlib==3.8.2

With a default conf.py created using sphinx-quickstart (minus the comments) and adding the sphinxext-opengraph extension:

project = 'Test'
copyright = '2023, Test Authors'
author = 'Test Authors'

extensions = [
    "sphinxext.opengraph",
]

templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

html_theme = 'alabaster'
html_static_path = ['_static']

Running make html prints findfont: Font family 'Roboto' not found. repeatedly.

Build log: ``` Running Sphinx v7.2.6 making output directory... done building [mo]: targets for 0 po files that are out of date writing output... building [html]: targets for 1 source files that are out of date "updating environment: [new config] 1 added, 0 changed, 0 removed" reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done copying assets... copying static files... done copying extra files... done done findfont: Font family ['Roboto'] not found. Falling back to DejaVu Sans. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. findfont: Font family 'Roboto' not found. generating indices... genindex done writing additional pages... search done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. ``` I can confirm that `_static/Roboto-flex.ttf` is there