[work-86yr.15] Save per-theme preview font choices #49
Loading…
Reference in a new issue
No description provided.
Delete branch "work-86yr.15-studio-font-selector-for-preview-and"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Themes can now choose JetBrains Mono, Fira Code, IBM Plex Mono, Cascadia Code, Source Code Pro, Hack or System mono in the header. The preview and fetch Font line follow the choice; storage, copies, undo/redo and optional font metadata in .tema.json retain it. Legacy themes keep the default. App export templates stay unchanged; font export support belongs to work-86yr.17.
The six bundled families use licensed, self-hosted Latin/subset WOFF2 faces with installed fonts preferred. Preview-only family aliases preserve the app chrome font. Assets and full licenses total about 254 KB and are included in the publish archive. Optional Iosevka is omitted: its distributed Latin regular and bold WOFF2 files alone total 1.97 MB, exceeding the 1.5 MB budget.
Validation: all studio Node tests passed, including font cleanup/JSON/import round trips and 102,489 wand checks; rebuilding data leaves studio/data unchanged. Headless Chromium file:// checks passed for regular/bold font loading, fetch labels, persistence/reload, undo/redo/default reset, copies/theme switching and the generator lock, with no console/request errors. The 1280×720 layout was visually checked.
Keeper review. Routine UI/font feature; no data-loss, security or lockout risk.
Checked:
1250d80), PR head32be2fbreviewed file by file.python3 studio/tools/build_data.pyleaves studio/data clean, so exported files are unchanged.