[]
Core.FontDescriptor
Represents a font file descriptor.
example
const font: FontDescriptor = {
name: 'Arial',
source: 'fonts/arial.ttf',
weight: '400',
};
• Optional locals: string[]
Gets or sets the fallback font family names to search locally.
• name: string
Gets or sets the font family name (for example, "Segoe UI").
• Optional postscriptName: string
Gets or sets the font PostScript name.
• source: string | string[]
Gets or sets the font file URI(s). Supported formats are .ttf, .otf, and .woff.
• Optional style: string
Gets or sets the font style (for example, "italic").
• Optional useAsDefault: boolean
Gets or sets a value indicating whether the font is the default for PDF export.
• Optional weight: string
Gets or sets the font weight (for example, "bold").