IPdfFontFile Interface

File
wijmo.pdf.js
Module
wijmo.pdf
Implements
IPdfFontAttributes

Represents the settings of the font to register by registerFont and registerFontAsync methods.

Properties

Properties

family

An optional parameter determining the TrueType Collection or Datafork TrueType font family.

Type
string

name

The name of the font to use.

Type
string

source

An ArrayBuffer containing binary data or URL to load the font from. Following font formats are supported: TrueType (.ttf), TrueType Collection (.ttc), Datafork TrueType (.dfont).

Type
any

style

The style of the font. One of the following values: 'normal', 'italic', 'oblique'.

Type
string

weight

The weight of the font. One of the following values: 'normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900'.

Type
string