Appearance
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
| Property | Type | Description | Defined in |
|---|---|---|---|
bold? | PdfFont | Face used when bold is requested without italic. | src/types.ts:60 |
boldItalic? | PdfFont | Face used when both bold and italic are requested. | src/types.ts:64 |
italic? | PdfFont | Face used when italic is requested without bold. | src/types.ts:62 |
regular | PdfFont | Face used when neither bold nor italic is requested. | src/types.ts:58 |