Skip to content

feat(build): --font-regular/--font-bold source overrides#155

Open
odex21 wants to merge 1 commit into
pocket-stack:mainfrom
odex21:feat/font-override
Open

feat(build): --font-regular/--font-bold source overrides#155
odex21 wants to merge 1 commit into
pocket-stack:mainfrom
odex21:feat/font-override

Conversation

@odex21

@odex21 odex21 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

--font-regular=<path> and --font-bold=<path> CLI flags let a target build with alternative TTF sources without replacing the shared Inter fonts in assets/fonts/.

Motivation

framework/compiler/bake-font.ts already accepted regularTtf/boldTtf in BakeOptions, but tools/build.ts never wired them up to CLI args.

Use case

The ESP32-P4 lyrics firmware needs a subset CJK font to fit the app partition, while desktop/web builds keep the stock Inter fonts.

Changes

tools/build.ts — 9 lines added:

  • --font-regular= and --font-bold= argument parsing
  • Forward to bakeAtlases({ regularTtf, boldTtf })

Lets a target bake subset or alternative TTFs without replacing the shared
assets in the tree — the ESP32-P4 lyrics firmware uses a subset CJK font to
fit the app partition, while desktop/web builds keep the stock fonts.
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.

1 participant