modern-pdf-lib / EmbedFontOptions
Interface: EmbedFontOptions
Defined in: src/core/pdfDocument.ts:109
Options for font embedding.
Properties
customName?
optionalcustomName: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?
optionalfeatures:Record<string,boolean>
Defined in: src/core/pdfDocument.ts:113
OpenType feature flags. e.g., { kern: true, liga: true }.
subset?
optionalsubset:boolean
Defined in: src/core/pdfDocument.ts:111
Whether to subset the font to reduce file size. Default: true.