Repository navigation
Conversation
Assisted-by: Codex (OpenAI)
👷 Deploy request for python-package-guide pending review.Visit the deploys page to approve it
|
InessaPawson
left a comment
There was a problem hiding this comment.
@JP-Mendez Thank you for your interest in contributing to PyOpenSci! Could you share a bit more about the motivation behind this PR? Did you run into any specific issues with the current system font fallback? I'd like to better understand if the proposed improvement justifies adding 4.15 MiB and the associated maintenance overhead into this codebase.
|
@JP-Mendez I now see that vendoring Noto Sans JP was proposed in #504 and #515. Looking at the original warnings in #504, I don't think the proposed solution addresses the root cause. The warnings come from What needs to happen is to configure a font with Japanese glyph coverage via |
Fixes #515. Japanese pages now use a bundled Noto Sans JP font as a fallback after Poppins and Nunito Sans. The variable font is losslessly compressed to a 4.1 MiB WOFF2 and shipped with its SIL Open Font License. The language selector limits use of the asset to Japanese pages.
The Japanese Sphinx build completed. In the rendered guide, the browser loaded the font and used the Japanese font stack for the body, title and navigation. The conversion preserved all 16,732 glyph mappings. The existing OpenGraph social-card font warnings are outside the HTML fallback scope.
Font source: https://github.com/google/fonts/tree/5026800714d07231937d92eb4cceabf06e05d74e/ofl/notosansjp
Disclosure: OpenAI Codex prepared the change and ran the validation.