Fonts: a family's new set of faces is learned and loaded before it shows
The gate knew a family by its CSS name alone, so once Brand was on the page a later pick of Brand with a bold added changed the deck but not the open editor's faces (final review, I4). The session now keeps an uploaded family's state under its name and its set of faces: a new set is learned again, waited for like any family a change brings in, and put on in place of the old set in one task. A new set late past its timeout leaves the old set on the page. Undo and redo learn the deck's set again and swap to it with the change (afterHistory); a change worked out and not made leaves the tab on the deck's own set. The system session and the editor's inert handling move to their own modules so the gate's files stay under 300 lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 files changed,
+514
−121
fixtures/editor-entry.js+5 −2fixtures/editor-fonts.mjs+43 −48fixtures/editor-inert.mjs+54 −0fixtures/font-session.mjs+60 −50fixtures/font-system-session.mjs+36 −0fixtures/font-uploaded.test.mjs+1 −1fixtures/font-versions.test.mjs+173 −0internal/slides/credits/assets.json+2 −2internal/slides/static/{editor.8e9f387a2b4c5114.js => editor.98b1154b7eb2a97c.js}+17 −17internal/slides/static/fontsgate.56fc9bd74522b27d.js+0 −1internal/slides/static/fontsgate.e09faf27212cb95f.js+4 −0internal/slidestest/deckfonts_versions_browser_test.go+119 −0
fixtures/editor-entry.jsLoading diff…
fixtures/editor-fonts.mjsLoading diff…
fixtures/editor-inert.mjsLoading diff…
fixtures/font-session.mjsLoading diff…
fixtures/font-system-session.mjsLoading diff…
fixtures/font-uploaded.test.mjsLoading diff…
fixtures/font-versions.test.mjsLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/static/{editor.8e9f387a2b4c5114.js => editor.98b1154b7eb2a97c.js}Loading diff…
internal/slides/static/fontsgate.56fc9bd74522b27d.jsLoading diff…
internal/slides/static/fontsgate.e09faf27212cb95f.jsLoading diff…
internal/slidestest/deckfonts_versions_browser_test.goLoading diff…