FileFontSource

FileFontSource class

Represents the single TrueType font file stored in the file system.

class FileFontSource extends FontSourceBase;

Constructors

NameDescription
constructor(FontSourceBase)Constructs from a parent object convertible to this.
constructor(string)Ctor.

Methods

MethodDescription
getFilePath()Path to font file.
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(string)

Ctor.

constructor(filePath: string);

Parameters:

ParameterTypeDescription
filePathstringpath to font file

getFilePath()

Path to font file.

getFilePath() : string;

getType()

Returns the type of the font source.

getType() : FontSourceType;

Returns

FontSourceType