[]
        
(Showing Draft Content)

Wijmo_Pdf.Ipdffontfile

IPdfFontFile Interface

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

Heirarchy

Properties

Optional cursive

cursive: boolean

Glyphs have finishing strokes, flared or tapering ends, or have actual serifed endings.

Optional family

family: string

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

Optional fantasy

fantasy: boolean

Fantasy fonts are primarily decorative fonts that contain playful representations of characters.

Optional monospace

monospace: boolean

All glyphs have the same width.

name

name: string

The name of the font to use.

Optional sansSerif

sansSerif: boolean

Glyphs have stroke endings that are plain.

Optional serif

serif: boolean

Glyphs have finishing strokes, flared or tapering ends, or have actual serifed endings.

source

source: ArrayBuffer | string

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).

Optional style

style: string

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

Optional weight

weight: string

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