MemoryFontSource

MemoryFontSource class

Represents the single TrueType font file stored in memory.

class MemoryFontSource extends FontSourceBase;

Constructors

NameDescription
constructor(FontSourceBase)Constructs from a parent object convertible to this.
constructor(number[])Ctor.

Methods

MethodDescription
getFontData()Binary font data.
getType()Returns the type of the font source.

constructor(FontSourceBase)

Constructs from a parent object convertible to this.

constructor(obj: FontSourceBase);

Parameters:

ParameterTypeDescription
objFontSourceBaseThe parent object.

constructor(number[])

Ctor.

constructor(fontData: number[]);

Parameters:

ParameterTypeDescription
fontDatanumber[]Binary font data.

getFontData()

Binary font data.

getFontData() : number[];

Returns

number[]

getType()

Returns the type of the font source.

getType() : FontSourceType;

Returns

FontSourceType