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 declares 4 methods for MemoryFontSource objects in .NET programs. Available methods include: Dispose, Equals, GetHashCode, MemoryFontSource. Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: FontBytes.

Properties

NameTypeAccessDescription
FontBytesbyte[]ReadThe raw font bytes used to back this source.

Methods

SignatureDescription
MemoryFontSource(fontBytes: byte[])Creates a font source over the given font file bytes (the array is kept, not copied); throws when fontBytes is null.
Equals(obj: object?)Equal when both sources wrap the same byte array reference.
GetHashCode()Calls GetHashCode on this MemoryFontSource instance.
Dispose()No-op: FOSS doesn’t hold native handles for in-memory sources.

See Also

 English