Fonts: the deck names a picked family; names are unique without case
Two people can each have a different font called Brand. With the
library's name as the deck's, picking B's Brand for the body replaced
A's Brand in fontFiles and so changed the heading too (final review,
I3). POST /d/{sqid}/fonts now gives the family a name unique within
the deck: a listed family sharing a file with it keeps its name (the
same family, perhaps with faces added), else the library's name with
a number while a listed family has it (case-insensitively) or a stack
already means something by it. Core and fixtures refuse fontFiles
names used twice in any case, and catalog or generic family names;
pickOp replaces and keeps families without regard to case.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 files changed,
+287
−33
core/src/schema.rs+28 −1core/tests/ops.rs+7 −0fixtures/deck-fonts.mjs+11 −4fixtures/deck-fonts.test.mjs+17 −0fixtures/font-files.mjs+10 −2fixtures/ops.test.mjs+4 −0internal/slides/core/testdata/slides_core.wasmbinaryinternal/slides/core/testdata/slides_core.wasm.stamp+2 −2internal/slides/credits/assets.json+2 −2internal/slides/deckfonts.go+53 −5internal/slides/static/{editor.1a18c1f5110ed1fa.js => editor.8e9f387a2b4c5114.js}+17 −17internal/slidestest/deckfonts_alias_test.go+136 −0
core/src/schema.rsLoading diff…
core/tests/ops.rsLoading diff…
fixtures/deck-fonts.mjsLoading diff…
fixtures/deck-fonts.test.mjsLoading diff…
fixtures/font-files.mjsLoading diff…
fixtures/ops.test.mjsLoading diff…
internal/slides/core/testdata/slides_core.wasmLoading diff…
internal/slides/core/testdata/slides_core.wasm.stampLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/deckfonts.goLoading diff…
internal/slides/static/{editor.1a18c1f5110ed1fa.js => editor.8e9f387a2b4c5114.js}Loading diff…
internal/slidestest/deckfonts_alias_test.goLoading diff…