host: self-hosted Google Fonts (gfonts) and the font cache (fonts)
gfonts (pure): CSS2 API URLs, the fonts.googleapis.com/fonts.gstatic.com allowlist, CSS parsing and face selection, woff2 checks, the sha256 manifest cache format and the page script, whose origin guard and runtime global now come from the SiteSpec. fonts (net feature): the download client (allowlist re-checked per request, no redirects, size caps), the family/preview caches and install/remove/faces/preview for the app's shell-only commands. Tests and CSS fixtures moved with them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
40ae81afbe
commit
006ec960a3
6 changed files with 1176 additions and 0 deletions
14
crates/waybetter-host/tests/fixtures/gfonts/lato-text.css
vendored
Normal file
14
crates/waybetter-host/tests/fixtures/gfonts/lato-text.css
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(https://fonts.gstatic.com/l/font?kit=S6uyw4BMUTPHvxwiUS_jT0aNgbBanoA&skey=2d58b92a99e1c086&v=v25) format('woff2');
|
||||
unicode-range: U+20, U+4c, U+53, U+61, U+65, U+6c-6d, U+6f-70, U+74;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url(https://fonts.gstatic.com/l/font?kit=S6u9w4BMUTPHh6UVewqdFgekvrxQgpk3pro&skey=3480a19627739c0d&v=v25) format('woff2');
|
||||
unicode-range: U+20, U+4c, U+53, U+61, U+65, U+6c-6d, U+6f-70, U+74;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue