Skip to content

zeropdf v1.3.0


zeropdf / PdfFont

Type Alias: PdfFont

ts
type PdfFont = 
  | FontName
  | PdfEmbeddedFont
  | string & object;

Defined in: src/types.ts:44

Font value accepted by text APIs: a built-in FontName, an embedded font handle, or the name of a family registered with PdfDocument.registerFontFamily.

The string & {} member keeps FontName literals in editor autocomplete while still accepting an arbitrary registered family name.

Released under the ISC license.