Skip to content

zeropdf v1.3.0


zeropdf / FontFamilyFaces

Interface: FontFamilyFaces

Defined in: src/types.ts:56

The set of faces that make up a font family registered with PdfDocument.registerFontFamily. Once registered, text APIs can select a face by passing the family name as font together with the bold and italic flags, instead of juggling individual font handles.

Each face may be a built-in FontName or an embedded-font handle. Only regular is required; missing faces fall back to the closest available face (bold italic → bold → italic → regular).

Properties

PropertyTypeDescriptionDefined in
bold?PdfFontFace used when bold is requested without italic.src/types.ts:60
boldItalic?PdfFontFace used when both bold and italic are requested.src/types.ts:64
italic?PdfFontFace used when italic is requested without bold.src/types.ts:62
regularPdfFontFace used when neither bold nor italic is requested.src/types.ts:58

Released under the ISC license.