sempdf v1.9.1Interfaces
Interface: FontFamilyInput
sempdf / FontFamilyInput
Defined in: src/types.ts:92
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
| Property | Type | Description | Defined in |
|---|---|---|---|
bold? | FontSlotSource | Face used when bold is requested without italic. | src/types.ts:96 |
boldItalic? | FontSlotSource | Face used when both bold and italic are requested. | src/types.ts:100 |
italic? | FontSlotSource | Face used when italic is requested without bold. | src/types.ts:98 |
regular | FontSlotSource | Face used when neither bold nor italic is requested. | src/types.ts:94 |