Skip to content

v0.1.0-alpha.3

Pre-release
Pre-release

Choose a tag to compare

@diomalta diomalta released this 27 Jun 12:40
· 20 commits to main since this release
457db62

Alpha.3 — custom fonts and authoring tools.

Highlights:

  • Custom fonts are now live. Pass raw TTF/OTF bytes through the fonts option and reference each face from CSS by its intrinsic embedded family name.
  • Font rendering stays deterministic: no host/system font lookup, no network or filesystem fetches from document content, and unreferenced custom faces leave output unchanged.
  • Invalid font inputs now fail explicitly: non-Uint8Array entries reject with VelloraInputError, and unparseable font bytes reject with a located font:invalid diagnostic.
  • @vellora/lint now exposes the public diagnose() / fix() API for dev-time template checks and deterministic codemods.
  • @vellora/cli now includes vellora render, vellora lint, and vellora fix, including JSON lint output and fix --write.

Breaking alpha change:

  • The fonts option was previously accepted but inert. It is now active and validates entries as Uint8Array[] font bytes.

Install:

npm install vellora
npm install -g @vellora/cli

See #9 and #10.