Files
Zachary D. Rowitsch 7f767b4589
All checks were successful
ci / fast (linux) (push) Successful in 6m20s
Add @font-face support for web font loading through the full pipeline
Parse @font-face blocks (font-family, src with url()/format(), font-weight,
font-style), fetch font files via NetworkStack, and register them in FontDb
before layout runs. Font URLs resolve relative to the declaring stylesheet's
URL, not the page URL. Dynamic fonts are cleared on navigation to prevent
cross-page leaking.

Includes safety limits (MAX_FONT_FACE_RULES=64, MAX_FONT_FACE_LOADS=64),
cross-scheme protection (HTTP pages can't load file:// fonts), WOFF2
skipping with query-string-aware extension detection, and font-weight
clamping to [1,1000]. TTF and OTF formats are supported natively via
ab_glyph; WOFF2 decompression is deferred to a follow-up.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 20:47:26 -05:00
..