FileFontSource

FileFontSource class

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

class FileFontSource extends FontSourceBase;

Constructors

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

Properties

PropertyTypeDescription
filePathstringReadonly. Path to font file.

Methods

MethodDescription
getFilePath()@deprecated. Please use the ‘filePath’ property instead. Path to font file.
isNull()Checks whether the implementation object is null.
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

filePath

Readonly. Path to font file.

filePath : string;

getFilePath()

@deprecated. Please use the ‘filePath’ property instead. Path to font file.

getFilePath() : string;

isNull()

Checks whether the implementation object is null.

isNull() : boolean;

getType()

Returns the type of the font source.

getType() : FontSourceType;

Returns

FontSourceType