Skip to content

zeropdf v1.3.0


zeropdf / FontFamilyInput

Interface: FontFamilyInput

Defined in: src/types.ts:73

Input accepted by PdfDocument.registerFontFamily. Each face may be a built-in FontName, an already-embedded font handle, or raw font bytes — bytes are embedded automatically under the family name, so you can register a family in one call without embedding each weight first.

Properties

PropertyTypeDescriptionDefined in
bold?| BinaryData | PdfFontFace used when bold is requested without italic.src/types.ts:77
boldItalic?| BinaryData | PdfFontFace used when both bold and italic are requested.src/types.ts:81
italic?| BinaryData | PdfFontFace used when italic is requested without bold.src/types.ts:79
regular| BinaryData | PdfFontFace used when neither bold nor italic is requested.src/types.ts:75

Released under the ISC license.