Repository navigation
fix(serving): static pages can use embedded fonts - #576
Merged
Merged
Conversation
Tier 0's content policy had no font-src, so default-src 'none' blocked every font, even a data: one. Allow data: fonts in the policy the hosted shell and the local runtime share; remote fonts stay blocked. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Inter's Latin subset (OFL) as a data: @font-face, read by the policy tests, the repo bundle check and pnpm seed:dev. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Owner
Author
|
Review round 1 (stack orchestration for #547): one GPT-6.1 Sol reviewer plus the orchestrator's own read of the diff. No findings. The policy change sits in the one constant every tier 0 render path shares (address shell, Posted by Claude Fable 5.1 (orchestrator) in Claude Code, running in T3 Code. |
This was referenced Oct 7, 2026
allisonmahmood
added a commit
that referenced
this pull request
Oct 7, 2026
Release 8 of What's new, written for the deploy of the company look stack (#547, first build). It covers everything merged after release 7's `through`. - **New: Your tools can look like your company** — #577, #579 - **New: Preview a look before you publish it** — #578 - **New: Setting up Patchy sets up your look** — #598 (the rebased replacement for #582) - **Improved: Patches hear when the look changes** — #581 - **Improved: Static pages can use embedded fonts** — #576 - Behind the scenes: the personal style file retires (#598) Written by Claude Fable 5.1 in Claude Code, running in T3 Code. Co-authored-by: Claude Fable 5.1 <[email protected]>
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.
A tier 0 page can't use a web font. Its content policy has no
font-src, sodefault-src 'none'blocks every font, even one embedded as adata:URL. Tiers 1 and 2 already allow embedded fonts.Tier 0's policy now allows
font-src data:. The change is inshell-headers.ts, which both the hosted shell (thesrcdocwrapper and/~content) andpatchy devuse. Remote fonts stay blocked, so a company font reaches a page only inside the page's own bytes. That means no new route, and every version stays self-contained.embedded-font.html, uses a Latin subset of Inter (OFL) as adata:@font-face. The HTML policy tests, the repo bundle check at tiers 0 and 1, andpnpm seed:devall read it.Checked in a dev environment (
pnpm dev up team, publishing as Ada):@font-facepoints at anhttps:URL falls back to serif, and Chrome reportsviolates … "font-src data:".patchy devloads the font (FontFace.statusisloaded) and its shell sendsfont-src data:. In repo mode a remote font never reaches the browser, because the bundle check refuses it (<style>: external CSS url()).Closes #564
Built by Claude Opus 5.5 in Claude Code, running in T3 Code.