Skip to content

modern-pdf-lib


modern-pdf-lib / EmbedFontOptions

Interface: EmbedFontOptions

Defined in: src/core/pdfDocument.ts:109

Options for font embedding.

Properties

customName?

optional customName: string

Defined in: src/core/pdfDocument.ts:115

Custom name to use in the font dictionary's /BaseFont instead of the font's PostScript name.


features?

optional features: Record<string, boolean>

Defined in: src/core/pdfDocument.ts:113

OpenType feature flags. e.g., { kern: true, liga: true }.


subset?

optional subset: boolean

Defined in: src/core/pdfDocument.ts:111

Whether to subset the font to reduce file size. Default: true.

Released under the MIT License.