FolderFontSource

FolderFontSource class

Represents the folder that contains TrueType font files.

class FolderFontSource extends FontSourceBase;

Constructors

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

Properties

PropertyTypeDescription
folderPathstringReadonly. Path to fonts folder.
scanSubFoldersbooleanReadonly. Determines whether or not to scan the subfolders.

Methods

MethodDescription
getFolderPath()@deprecated. Please use the ‘folderPath’ property instead. Path to fonts folder.
getScanSubFolders()@deprecated. Please use the ‘scanSubFolders’ property instead. Determines whether or not to scan the subfolders.
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, boolean)

Ctor.

constructor(folderPath: string, scanSubfolders: boolean);

Parameters:

ParameterTypeDescription
folderPathstringpath to fonts folder
scanSubfoldersbooleanDetermines whether or not to scan subfolders.

folderPath

Readonly. Path to fonts folder.

folderPath : string;

scanSubFolders

Readonly. Determines whether or not to scan the subfolders.

scanSubFolders : boolean;

getFolderPath()

@deprecated. Please use the ‘folderPath’ property instead. Path to fonts folder.

getFolderPath() : string;

getScanSubFolders()

@deprecated. Please use the ‘scanSubFolders’ property instead. Determines whether or not to scan the subfolders.

getScanSubFolders() : boolean;

isNull()

Checks whether the implementation object is null.

isNull() : boolean;

getType()

Returns the type of the font source.

getType() : FontSourceType;

Returns

FontSourceType