Skip to content

Font error when not specifying ogp_image #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ru-fu opened this issue Jul 10, 2023 · 5 comments
Closed

Font error when not specifying ogp_image #107

ru-fu opened this issue Jul 10, 2023 · 5 comments

Comments

@ru-fu
Copy link
Contributor

ru-fu commented Jul 10, 2023

When using the extension without specifying a value for ogp_image, local builds return the following error:

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

To reproduce, just create a default project with sphinx-quickstart and add the extension to the list in conf.py.
The error disappears when specifying a value for ogp_image.

Roboto is not installed on my system. I haven't tested if the error disappears when installing the font.

ru-fu added a commit to ru-fu/starter-pack that referenced this issue Jul 10, 2023
Make sure we don't get a font error if someone comments out ogp_image.
See sphinx-doc/sphinxext-opengraph#107

Fixes canonical#42.

Signed-off-by: Ruth Fuchss <[email protected]>
@TheTripleV
Copy link
Collaborator

What OS are you using?
What is your sphinx version?
What is your sphinx theme?

@ru-fu
Copy link
Contributor Author

ru-fu commented Jul 10, 2023

What OS are you using?

Ubuntu 22.04

What is your sphinx version?

4.2.0

What is your sphinx theme?

It happens with Furo, but also with the default (alabaster).

@xqt
Copy link

xqt commented Aug 25, 2023

We have the same problem with

  • Python 3.9
  • Sphinx==7.2.3
  • furo==2023.8.19
  • sphinxext-opengraph==0.8.2

See:

@xqt
Copy link

xqt commented Nov 5, 2023

This issue is solved with sphinxext-opengraph==0.9.0

@sciencewhiz
Copy link
Contributor

Fixed by #110

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants