Skip to content
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

Bundled Roboto font does not support Japanese (social images) #108

Closed
zhudotexe opened this issue Jul 14, 2023 · 0 comments · Fixed by #110
Closed

Bundled Roboto font does not support Japanese (social images) #108

zhudotexe opened this issue Jul 14, 2023 · 0 comments · Fixed by #110

Comments

@zhudotexe
Copy link

Hello! We're using sphinxext-opengraph to generate meta tags for a new project we're working on that happens to have two katakana characters in its name. When we try to generate social images, these appear as unknown characters:

summary_index_5a47e8a8

and we see this warning from matplotlib in the terminal:

sphinxext/opengraph/socialcards.py:168: UserWarning: Glyph 12459 (\N{KATAKANA LETTER KA}) missing from current font.             
  fig.savefig(path, facecolor=None)

I see that there's a comment in the code suggesting that allowing users to customize the font is planned:

# socialcards.py#L185
# TODO: Currently the `font` parameter above does nothing
#   Should instead make it possible to load remote fonts or local fonts
#   if a user specifies.

but as of v0.8.2 it is not possible to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant