Fonts: the Fonts page samples each family; Deck settings refreshes
Two minor review points (final review). The Fonts page showed names
and styles only, not the spec's sample line: each family's name is
now set in a face of it, loaded with font-display: block from
GET /fonts/files/{ref}, which serves a library file to its owner
alone. And Deck settings offered a family uploaded in the Fonts tab
only once the editor was opened again: GET /fonts answers the
person's families as JSON, and the editor asks again whenever its
window has focus (refreshYourFonts), naming a new group with the
approved "Your fonts" carried on the page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 files changed,
+329
−27
fixtures/deck-fonts.mjs+35 −0fixtures/inspector.mjs+15 −2internal/slides/app.go+1 −0internal/slides/credits/assets.json+1 −1internal/slides/deckfonts.go+7 −0internal/slides/library.go+102 −2internal/slides/static/editor.98b1154b7eb2a97c.js+0 −18internal/slides/static/editor.b84fc015e0f3efec.js+18 −0internal/slides/templates/editor.html+4 −2internal/slides/templates/fonts.html+4 −2internal/slidestest/deckfonts_refresh_browser_test.go+72 −0internal/slidestest/library_sample_test.go+70 −0
fixtures/deck-fonts.mjsLoading diff…
fixtures/inspector.mjsLoading diff…
internal/slides/app.goLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/deckfonts.goLoading diff…
internal/slides/library.goLoading diff…
internal/slides/static/editor.98b1154b7eb2a97c.jsLoading diff…
internal/slides/static/editor.b84fc015e0f3efec.jsLoading diff…
internal/slides/templates/editor.htmlLoading diff…
internal/slides/templates/fonts.htmlLoading diff…
internal/slidestest/deckfonts_refresh_browser_test.goLoading diff…
internal/slidestest/library_sample_test.goLoading diff…