
## FolderFontSource class

Represents the folder that contains TrueType font files.

```javascript
class FolderFontSource extends FontSourceBase;
```


## Constructors

| Constructor | Description |
| --- | --- |
| [constructor(FontSourceBase)](#constructor-fontsourcebase-)| Constructs from a parent object convertible to this. |
| [constructor(string, boolean)](#constructor-string-boolean-)| Ctor. |

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [folderPath](#folderPath--)| string | Readonly. Path to fonts folder. |
| [scanSubFolders](#scanSubFolders--)| boolean | Readonly. Determines whether or not to scan the subfolders. |

## Methods

| Method | Description |
| --- | --- |
| [getFolderPath()](#getFolderPath--)| <b>@deprecated.</b> Please use the 'folderPath' property instead. Path to fonts folder. |
| [getScanSubFolders()](#getScanSubFolders--)| <b>@deprecated.</b> Please use the 'scanSubFolders' property instead. Determines whether or not to scan the subfolders. |
| [isNull()](#isNull--)| Checks whether the implementation object is null. |
| [getType()](#getType--)| Returns the type of the font source. |


### constructor(FontSourceBase) {#constructor-fontsourcebase-}

Constructs from a parent object convertible to this.

```javascript
constructor(obj: FontSourceBase);
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| obj | FontSourceBase | The parent object. |

### constructor(string, boolean) {#constructor-string-boolean-}

Ctor.

```javascript
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 {#folderPath--}

Readonly. Path to fonts folder.

```javascript
folderPath : string;
```


### scanSubFolders {#scanSubFolders--}

Readonly. Determines whether or not to scan the subfolders.

```javascript
scanSubFolders : boolean;
```


### getFolderPath() {#getFolderPath--}

<b>@deprecated.</b> Please use the 'folderPath' property instead. Path to fonts folder.

```javascript
getFolderPath() : string;
```


### getScanSubFolders() {#getScanSubFolders--}

<b>@deprecated.</b> Please use the 'scanSubFolders' property instead. Determines whether or not to scan the subfolders.

```javascript
getScanSubFolders() : boolean;
```


### isNull() {#isNull--}

Checks whether the implementation object is null.

```javascript
isNull() : boolean;
```


### getType() {#getType--}

Returns the type of the font source.

```javascript
getType() : FontSourceType;
```


**Returns**

[FontSourceType](../fontsourcetype/)


