Repository navigation
feat(themes): serve Roboto and Barlow locally - #8524
Closed
somethingwithproof wants to merge 2 commits into
Closed
somethingwithproof wants to merge 2 commits into
somethingwithproof wants to merge 2 commits into
Conversation
Midwinter named Roboto but never shipped it, so it only rendered where the font was installed; the OFL woff2 files (Latin and Latin Extended, from Fontsource 5.3.0) now load from include/fonts with no third-party request. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
somethingwithproof
requested review from
TheWitness
and removed request for
a team
October 26, 2026 23:44
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
|
somethingwithproof
added a commit
that referenced
this pull request
Oct 26, 2026
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
somethingwithproof
added a commit
that referenced
this pull request
Oct 27, 2026
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Stacked on #8523; merge that first.
Midwinter names Roboto and Roboto Mono first in its font stack but never shipped them, so it only rendered in Roboto where the font happened to be installed. This bundles Roboto and Roboto Mono for Midwinter and every child, plus Barlow for Daybreak, as woff2 under
include/fonts/<family>/. Each folder carries its SIL Open Font License, and the files come unmodified from the Fontsource 5.3.0 packages, Latin and Latin Extended subsets only (about 200 KiB in total). Faces usefont-display: swap, and no request leaves the Cacti host, so air-gapped installs and the existing CSP are unaffected.Coverage note: the theme job's changed CSS line gate will report the
@font-faceand@importlines as uncovered. Chromium's CSS coverage only records style-rule usage and never marks those at-rules as used, even when the face loads. The palette spec instead asserts that every shipped weight loads in both subsets frominclude/fonts/and that no font request goes anywhere else; deleting a single woff2 file makes it fail.Validation: palette, theme correctness and cleanup specs pass (108), headless Chrome resolves each theme's sans and mono stacks to the bundled faces, and every
@importcache hash matches its file.🤖 Generated with Claude Code