Files
TREK/shared/src/i18n/pl/studioFonts.ts
T
Maurice fabefed39f feat(studio): 34 typefaces with real weights and italics, a categorised font picker
The book catalogue grows from 7 families to 34, all self-hosted through
@fontsource under the SIL OFL 1.1 or the Apache License 2.0: condensed and
poster faces, heavy retro display, elegant display serifs, Montserrat, twelve
scripts and DM Mono. Weights run from 100 to 900, each family offering only
the weights it ships, and the serifs gain real italics.

The catalogue lives in @trek/shared (book-fonts.data.ts) with each family's
roles (display, heading, body, script, mono), weights, italics and letter
width, so the Studio, the findings, the design engine and the assistant read
one list. Page operations and the design engine set a weight a family lacks
at its nearest one, describe_book_page names the role and the weight, and
font_mix no longer counts scripts and mono faces, warning above three.

The Studio gets StudioFontPicker: the current family set in itself, a
searchable list grouped by kind with every family in its own face and the
book's own families first, and a weight slider over the weights the family
has. Faces load only when used; the assistant's page snapshot embeds only the
faces a page draws, the service worker installs only the latin files of the
original seven families, and the faces of an opened book are cached for
offline use. BOOK_SCHEMA_REV goes to 2.
2026-10-23 21:01:29 +02:00

32 lines
1.4 KiB
TypeScript

import type { TranslationStrings } from '../types';
/** The Studio's typeface picker and its weights. */
const studioFonts: TranslationStrings = {
'journey.studio.fonts.change': 'Zmień krój pisma',
'journey.studio.fonts.search': 'Szukaj krojów',
'journey.studio.fonts.list': 'Kroje pisma',
'journey.studio.fonts.used': 'Użyte w tej książce',
'journey.studio.fonts.none': 'Żaden krój nie pasuje',
'journey.studio.fonts.range': '{from} do {to}',
'journey.studio.fonts.cat.sans': 'Bezszeryfowe',
'journey.studio.fonts.cat.serif': 'Szeryfowe',
'journey.studio.fonts.cat.elegant': 'Eleganckie tytułowe',
'journey.studio.fonts.cat.condensed': 'Wąskie i plakatowe',
'journey.studio.fonts.cat.retro': 'Ciężkie i retro',
'journey.studio.fonts.cat.script': 'Pisane i odręczne',
'journey.studio.fonts.cat.mono': 'O stałej szerokości',
'journey.studio.weight.100': 'Cienka',
'journey.studio.weight.200': 'Bardzo lekka',
'journey.studio.weight.300': 'Lekka',
'journey.studio.weight.400': 'Zwykła',
'journey.studio.weight.500': 'Średnia',
'journey.studio.weight.600': 'Półgruba',
'journey.studio.weight.700': 'Gruba',
'journey.studio.weight.800': 'Bardzo gruba',
'journey.studio.weight.900': 'Czarna',
'journey.studio.weightOnly': 'Tylko jedna grubość',
'journey.studio.italicSlanted': 'Kursywa, pochylona: ten krój nie ma własnej kursywy',
};
export default studioFonts;