Skip to content

docs: font support in compose and caption.burn - #74

Merged
a-essawy merged 3 commits into
mainfrom
feat/font-support
Aug 25, 2026
Merged

docs: font support in compose and caption.burn#74
a-essawy merged 3 commits into
mainfrom
feat/font-support

Conversation

@a-essawy

Copy link
Copy Markdown
Contributor

Documents the font work shipped in rendobar/rendobar #570 through #575, now live in prod.

compose

The text-style reference said font was one of seven bundled families. That is now wrong, not just incomplete: it takes any Google Fonts family by name, a CSS fallback stack, and families declared from your own files.

New ## Fonts section covers Google-by-name, the fonts array with caller-chosen family names, the font shorthand, fallback stacks as a failure policy (with the fontFallbacks report shape), weights, and script coverage.

caption.burn

Resolves Google families by name through the same stageFonts code, which fontFamily did not say. Its font input was undocumented altogether.

Verified in prod, not inferred: job_e673dcd8c7d247d0 with fontFamily: "Bebas Neue" and no font file renders in Bebas Neue.

captions.animate

Deliberately not given the same claim. It stages a supplied file for libass on its own path in detect.ts and never reaches the font catalogue, so Google-by-name does not work there. A <Note> says so and points at the two jobs where it does, rather than leaving a reader to assume the sibling job's behaviour.

That inconsistency is real and worth closing in the API, but it is a change to a working captions path, so it is not smuggled into a docs PR.

compose's text-style reference listed seven bundled families as the whole
of `style.font`. It now takes any Google Fonts family by name, a CSS
fallback stack, and families declared from your own files via the `fonts`
input, so the row was wrong rather than merely incomplete.

Adds a Fonts section to compose covering all of it: Google by name, the
`fonts` array with caller-chosen family names, the `font` shorthand,
fallback stacks as a failure policy with the `fontFallbacks` report,
weights, and script coverage.

caption.burn resolves Google families by name through the same code, which
its `fontFamily` field did not say, and its `font` input was undocumented
altogether.

captions.animate does NOT share that resolver. It stages a supplied file
for libass on its own path and never reaches the catalogue, so its section
now says so outright instead of leaving a reader to assume the sibling
job's behaviour.
@a-essawy
a-essawy merged commit 0fd950d into main Aug 25, 2026
1 check passed
@a-essawy
a-essawy deleted the feat/font-support branch August 25, 2026 08:06
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