fix(studio): text elements use the real font stacks, not the stale three-font map (#2183)

This commit is contained in:
Maurice
2026-09-01 17:39:46 +02:00
committed by Maurice
parent 674dededd3
commit 1e6f1fe95c
4 changed files with 34 additions and 18 deletions
+3 -13
View File
@@ -6,19 +6,9 @@
* exactly the kind of file you edit constantly while designing.
*/
/**
* The book's typefaces.
*
* Poppins ships with the client already; Georgia is a system serif. Print will
* need these self-hosted and identical on the server, or the renderer silently
* substitutes — which is what the current Journey PDF export does today, asking
* for Inter while only Poppins is bundled.
*/
export const FONT_STACKS: Record<string, string> = {
sans: '"Poppins", system-ui, sans-serif',
serif: 'Georgia, "Times New Roman", serif',
display: '"MuseoModerno", "Poppins", system-ui, sans-serif',
}
// The typefaces live in bookFonts.ts (fontStack et al.) — a second stack map
// here is exactly how #2183 happened: the renderer kept a three-font copy
// while the picker grew to seven, and everything else fell back to Poppins.
export function photoSrc(photoId: number, big: boolean): string {
return `/api/photos/${photoId}/${big ? 'original' : 'thumbnail'}`