---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/MemoryFontSource
---

# MemoryFontSource

## Overview

`MemoryFontSource` is a class in Aspose.PDF FOSS for .NET.
Inherits from: `FontSource`, `IDisposable`.

A font source backed by an in-memory font byte buffer.

This class provides 4 methods for working with MemoryFontSource objects in .NET programs.
Available methods include: `Dispose`, `Equals`, `GetHashCode`, `MemoryFontSource`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `FontBytes`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `FontBytes` | `byte[]` | Read | The raw font bytes used to back this source. |

## Methods

| Signature | Description |
|-----------|-------------|
| `MemoryFontSource(fontBytes: byte[])` | Calls MemoryFontSource on this MemoryFontSource instance. |
| `Equals(obj: object?)` | Equal when both sources wrap the same byte array reference. |
| `GetHashCode()` | Calls GetHashCode on this MemoryFontSource instance. |
| `Dispose()` | No-op: no native handles are held for in-memory sources. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)