
## MemoryFontSource class

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




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

### Constructors
| Name | Description |
| --- | --- |
| [MemoryFontSource(fontData)](./constructor/#number[]) | Ctor. |
| [MemoryFontSource(fontData, priority)](./constructor/#number[]_number) | Ctor. |
| [MemoryFontSource(fontData, priority, cacheKey)](./constructor/#number[]_number_string) | Ctor. |

### Properties

| Name | Description |
| --- | --- |
| [cacheKey](./cacheKey/) | The key of this source in the cache. |
| [fontData](./fontData/) | Binary font data. |
| [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](../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](./).<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/)

