sempdf
sempdf v1.9.1Interfaces

Interface: TextDefaults

sempdf v1.9.1


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

PropertyTypeDescriptionDefined in
bold?booleanDefault bold flag.src/types.ts:498
codeFont?PdfFontDefault 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?ColorInputDefault text color.src/types.ts:504
direction?TextDirectionDefault 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?PdfFontDefault font (built-in name, embedded handle, or registered family name).src/types.ts:482
fontSize?numberDefault font size in PDF points.src/types.ts:502
italic?booleanDefault italic flag.src/types.ts:500
kerning?booleanDefault kerning behavior.src/types.ts:506

On this page