mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 17:26:24 +00:00
fix(studio): text elements use the real font stacks, not the stale three-font map (#2183)
This commit is contained in:
@@ -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'}`
|
||||
|
||||
Reference in New Issue
Block a user