Reference pages for the @awacloud/fonts modules, organised like src/. Each page documents one module descriptor: what it returns when resolved, its dependencies and a usage example. The entry point is main, which also lists every descriptor the package root exports and marks those that have no page of their own (internal sub-modules documented through their parent module).

Prerequisites: the @awacloud/fonts package and an @awacloud/fw runtime — descriptors are resolved by name (fw.runtime.resolve('<module>')) after registering the manifest arrays; see main. The sections below are grouped by area; every page is current for the published surface.

Errors

  • errors — FontError / ParseError / RenderError / ContractError

Primitives

Containers

  • sfnt/sfnt — parseSfnt / packSfnt
  • sfnt/ttc — TTC/OTC collections
  • sfnt/woff — WOFF1 (zlib)
  • sfnt/woff2 — WOFF2 (Brotli, no inverse transform)
  • _shared/ — fontsShared, container constants and helpers shared by the SFNT, TTC, WOFF and WOFF2 modules

OpenType tables (required)

OpenType tables (optional)

Variable fonts

Colour and bitmap

Glyph

Layout

Encodings

Embed-PDF

  • embed-pdf/ — subsetForPdf, fontDescriptor, cidSystemInfo, toUnicodeBuilder, index

Standard 14

  • standard14/ — Helvetica × 4, Times × 4, Courier × 4, Symbol, ZapfDingbats, lookup

Orchestrator

  • fonts — top-level read + .use()

Extra

Bundles