Skip to content

Selectable caption font, bundled offline#19

Merged
ankitsejwal merged 8 commits into
mainfrom
feat/caption-fonts
Jun 28, 2026
Merged

Selectable caption font, bundled offline#19
ankitsejwal merged 8 commits into
mainfrom
feat/caption-fonts

Conversation

@ankitsejwal

Copy link
Copy Markdown
Member

What

Adds a selectable caption font (#18). Instead of relying on the inconsistent system-cursive fallback, users pick from four bundled handwriting fonts via a picker in the controls row; the choice applies live to every polaroid.

  • Caveat (default), Patrick Hand, Shadows Into Light, Kalam
  • Fonts self-hosted via @fontsource — no external/Google Fonts fetch, stays fully offline/private
  • Selection stored in the settings store; applied to captions via font-family
  • Picker <option>s render in their own font for a quick preview

Built as 8 granular commits (deps → load → registry → setting → apply → control → wire → types fix).

Verification

Check Result
pnpm lint ✅ oxlint 0/0
pnpm typecheck ✅ tsc 7.0.1-rc
pnpm build ✅ Vite 8

Notes

  • noUncheckedSideEffectImports (our strict TS setting) flagged the @fontsource CSS imports (they ship no types) — added an ambient declare module '@fontsource/*'.
  • Replaced the old fixed --font-handwriting token (now dead) with the dynamic per-selection font.

Closes #18

@ankitsejwal ankitsejwal merged commit 837d442 into main Jun 28, 2026
1 check passed
@ankitsejwal ankitsejwal deleted the feat/caption-fonts branch June 28, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Selectable caption font (bundled, offline)

1 participant