sempdf v1.9.1Interfaces
Interface: TextDefaults
sempdf / TextDefaults
Defined in: src/types.ts:480
Document-wide text defaults applied to PdfPage.text and PdfPage.textBlock when the corresponding option is omitted on the call. Per-call options always take precedence.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
bold? | boolean | Default bold flag. | src/types.ts:498 |
codeFont? | PdfFont | Default font for code blocks and inline <code> runs. Falls back to TextDefaults.font, then to the built-in Courier. Set this to an embedded monospaced family when the document must avoid built-in fonts (PDF/A, PDF/UA, WTPDF) but font is proportional. | src/types.ts:496 |
color? | ColorInput | Default text color. | src/types.ts:504 |
direction? | TextDirection | Default text direction. | src/types.ts:508 |
fallbackFonts? | PdfFont[] | Default fonts consulted, in order, for characters the primary font cannot encode. Used by every text path that omits its own fallbackFonts — a symbol font listed here covers glyphs (dingbats, arrows, CJK) missing from the body font without threading the option through every call. | src/types.ts:489 |
font? | PdfFont | Default font (built-in name, embedded handle, or registered family name). | src/types.ts:482 |
fontSize? | number | Default font size in PDF points. | src/types.ts:502 |
italic? | boolean | Default italic flag. | src/types.ts:500 |
kerning? | boolean | Default kerning behavior. | src/types.ts:506 |