oficina / slides Public

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>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 9fbc15d3c1ded3530a1631090a62e325e24ea3bd parent 26fa43c
12 files changed, +514 −121
  • fixtures/editor-entry.js +5 −2
  • fixtures/editor-fonts.mjs +43 −48
  • fixtures/editor-inert.mjs +54 −0
  • fixtures/font-session.mjs +60 −50
  • fixtures/font-system-session.mjs +36 −0
  • fixtures/font-uploaded.test.mjs +1 −1
  • fixtures/font-versions.test.mjs +173 −0
  • internal/slides/credits/assets.json +2 −2
  • internal/slides/static/{editor.8e9f387a2b4c5114.js => editor.98b1154b7eb2a97c.js} +17 −17
  • internal/slides/static/fontsgate.56fc9bd74522b27d.js +0 −1
  • internal/slides/static/fontsgate.e09faf27212cb95f.js +4 −0
  • internal/slidestest/deckfonts_versions_browser_test.go +119 −0
fixtures/editor-entry.js

Loading diff…

fixtures/editor-fonts.mjs

Loading diff…

fixtures/editor-inert.mjs

Loading diff…

fixtures/font-session.mjs

Loading diff…

fixtures/font-system-session.mjs

Loading diff…

fixtures/font-uploaded.test.mjs

Loading diff…

fixtures/font-versions.test.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/static/{editor.8e9f387a2b4c5114.js => editor.98b1154b7eb2a97c.js}

Loading diff…

internal/slides/static/fontsgate.56fc9bd74522b27d.js

Loading diff…

internal/slides/static/fontsgate.e09faf27212cb95f.js

Loading diff…

internal/slidestest/deckfonts_versions_browser_test.go

Loading diff…