potiuk opened a new pull request, #1759:
URL: https://github.com/apache/airflow-site/pull/1759
The self-hosted Roboto, Open Sans and Roboto Mono files under
`landing-pages/site/static/external/fonts` contained only Google's
"symbols" subset — no Latin letters at all. When the fonts were vendored,
every per-script subset (latin, latin-ext, cyrillic, …) was saved under
the same file name, so only the last one downloaded survived. Browsers
therefore silently fell back to system fonts for landing-page text
(Roboto), the docs body (Open Sans) and `.monotext` elements
(Roboto Mono). Rubik was hand-fixed in #1131 and was not affected.
- Store each Google Fonts subset in its own file and point each
`@font-face` rule at the right one; nothing is loaded from Google at
runtime, and browsers only fetch the subsets a page needs (~200 KB of
Latin files for English pages).
- Add `.github/scripts/refresh_external_fonts.py` to regenerate the fonts
and CSS reproducibly.
- Keep the old single-file names as copies of the Latin subset, so
browsers that cached the old CSS keep working (Rubik headings would
otherwise fall back to a system font until the cache expires). They
can be removed after the 2027-03 site release.
- Re-measure the main navigation with the real Roboto: the labels take
~569px, leaving 44px spare at the 1025px collapse point (#1758), so the
breakpoint stays; the budget is now recorded in `_navbar.scss`.
Checked in a local build in Chrome: all fonts load from
`/external/fonts`, no requests go to Google, the navbar stays on one row
at 1030px and collapses to the hamburger at 1000px.
Text across the site and docs will look different, since it now uses
the intended typefaces instead of system fallbacks.
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — Claude Opus 5
Generated-by: Claude Opus 5
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]