FolderFontSource
Contents
[
Hide
]FolderFontSource class
Represents the folder that contains TrueType font files.
class FolderFontSource extends FontSourceBase;
Constructors
Name | Description |
---|---|
constructor(FontSourceBase) | Constructs from a parent object convertible to this. |
constructor(string, boolean) | Ctor. |
Properties
Property | Type | Description |
---|---|---|
folderPath | string | Readonly. Path to fonts folder. |
scanSubFolders | boolean | Readonly. Determines whether or not to scan the subfolders. |
Methods
Method | Description |
---|---|
getType() | Returns the type of the font source. |
constructor(FontSourceBase)
Constructs from a parent object convertible to this.
constructor(obj: FontSourceBase);
Parameters:
Parameter | Type | Description |
---|---|---|
obj | FontSourceBase | The parent object. |
constructor(string, boolean)
Ctor.
constructor(folderPath: string, scanSubfolders: boolean);
Parameters:
Parameter | Type | Description |
---|---|---|
folderPath | string | path to fonts folder |
scanSubfolders | boolean | Determines 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