Skip to content

v1.41.0

Choose a tag to compare

@superdoc-bot superdoc-bot released this 15 Jun 16:23
· 243 commits to stable since this release

What's New

@superdoc-dev/fonts package — Optional package containing 6 MB of .woff2 font binaries for reviewed metric-compatible substitutes, published to npm under the org scope so the core stays small for apps that skip the pack.

Config-gated bundled font availability — Font availability is now explicit: without a configured pack, SuperDoc shows a conservative baseline (Arial, Times New Roman, Courier New), and documents render their original font names with system fonts; configuring the pack lights up the full reviewed set, so toolbar and rendering show the curated families you enable.

Font curation API — createSuperDocFonts({ include / exclude }) validates family names against the pack and curates availability at setup time, so typos fail fast and a no-pack or curated document never reuses another document's full-pack measures.

Improvements

Better baseline behavior — Unconfigured SuperDoc now shows one safe Word font per CSS generic instead of fetching missing substitutes from nowhere, and a one-time warning surfaces if the pack fails to load instead of silently degrading.

Document-scoped font resolution — Availability and curation are per-document in the resolver and offerings, keeping each editor's toolbar and rendering independent when multiple documents share a page.

CDN-ready fonts — The @superdoc-dev/fonts browser build exports a global SuperDocFonts with the same API, so <script> tag pages load the reviewed pack from jsDelivr, unpkg, or self-hosted servers with no bundler and no path config.

Updated examples and docs — Getting-started guides for Angular, Laravel, Next.js, Nuxt, React, Solid, Vanilla, and Vue now import and use @superdoc-dev/fonts.