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.

Properties

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

Methods

MethodDescription
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;

getType()

Returns the type of the font source.

getType() : FontSourceType;

Returns

FontSourceType