FolderFontSource

FolderFontSource class

Represents the folder that contains TrueType font files.

class FolderFontSource extends FontSourceBase;

Constructors

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

Methods

MethodDescription
getFolderPath()Path to fonts folder.
getScanSubFolders()Determines whether or not to scan the subfolders.
getType()Returns the type of the font source.
isNull()Checks whether the implementation object is null.

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.

getFolderPath()

Path to fonts folder.

getFolderPath() : string;

getScanSubFolders()

Determines whether or not to scan the subfolders.

getScanSubFolders() : boolean;

getType()

Returns the type of the font source.

getType() : FontSourceType;

Returns

FontSourceType

isNull()

Checks whether the implementation object is null.

isNull() : boolean;