[]
        
(Showing Draft Content)

Core.FontDescriptor

Interface: FontDescriptor

Core.FontDescriptor

Represents a font file descriptor.

example

const font: FontDescriptor = {
	name: 'Arial',
	source: 'fonts/arial.ttf',
	weight: '400',
};

Table of contents

Properties

Properties

locals

Optional locals: string[]

Gets or sets the fallback font family names to search locally.


name

name: string

Gets or sets the font family name (for example, "Segoe UI").


postscriptName

Optional postscriptName: string

Gets or sets the font PostScript name.


source

source: string | string[]

Gets or sets the font file URI(s). Supported formats are .ttf, .otf, and .woff.


style

Optional style: string

Gets or sets the font style (for example, "italic").


useAsDefault

Optional useAsDefault: boolean

Gets or sets a value indicating whether the font is the default for PDF export.


weight

Optional weight: string

Gets or sets the font weight (for example, "bold").