
## FileFontSource class

Represents the single TrueType font file stored in the file system.
To learn more, visit the [Working with Fonts](https://docs.aspose.com/words/nodejs-net/working-with-fonts/) documentation article.




**Inheritance:** [FileFontSource](./) → [FontSourceBase](../fontsourcebase/)

### Constructors
| Name | Description |
| --- | --- |
| [FileFontSource(filePath)](./constructor/#string) | Ctor. |
| [FileFontSource(filePath, priority)](./constructor/#string_number) | Ctor. |
| [FileFontSource(filePath, priority, cacheKey)](./constructor/#string_number_string) | Ctor. |

### Properties

| Name | Description |
| --- | --- |
| [cacheKey](./cacheKey/) | The key of this source in the cache. |
| [filePath](./filePath/) | Path to the font file. |
| [priority](../fontsourcebase/priority/) | Returns the font source priority.<br>(Inherited from [FontSourceBase](../fontsourcebase/)) |
| [type](./type/) | Returns the type of the font source. |

### Methods

| Name | Description |
| --- | --- |
|[ asFileFontSource()](../fontsourcebase/asFileFontSource/#default) | Cast [FontSourceBase](../fontsourcebase/) object to [FileFontSource](./).<br>(Inherited from [FontSourceBase](../fontsourcebase/)) |
|[ asFolderFontSource()](../fontsourcebase/asFolderFontSource/#default) | Cast [FontSourceBase](../fontsourcebase/) object to [FolderFontSource](../folderfontsource/).<br>(Inherited from [FontSourceBase](../fontsourcebase/)) |
|[ asMemoryFontSource()](../fontsourcebase/asMemoryFontSource/#default) | Cast [FontSourceBase](../fontsourcebase/) object to [MemoryFontSource](../memoryfontsource/).<br>(Inherited from [FontSourceBase](../fontsourcebase/)) |
|[ asStreamFontSource()](../fontsourcebase/asStreamFontSource/#default) | Cast [FontSourceBase](../fontsourcebase/) object to [StreamFontSource](../streamfontsource/).<br>(Inherited from [FontSourceBase](../fontsourcebase/)) |
|[ asSystemFontSource()](../fontsourcebase/asSystemFontSource/#default) | Cast [FontSourceBase](../fontsourcebase/) object to [SystemFontSource](../systemfontsource/).<br>(Inherited from [FontSourceBase](../fontsourcebase/)) |

### See Also

* module [Aspose.Words.Fonts](../)
* class [FontSourceBase](../fontsourcebase/)

