FontCollection
Overview
FontCollection is a class in Aspose.PDF FOSS for .NET.
Inherits from: IEnumerable<Font>.
Collection of fonts referenced by a page.
This class provides 6 methods for working with FontCollection objects in .NET programs.
Available methods include: Add, Contains, CopyTo, GetEnumerator, Remove.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: Count, IsReadOnly, IsSynchronized, SyncRoot.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | Gets the count. |
IsReadOnly | bool | Read | Gets the is read only. |
IsSynchronized | bool | Read | Gets the is synchronized. |
SyncRoot | object | Read | Gets the sync root. |
Methods
| Signature | Description |
|---|---|
GetEnumerator() | Calls GetEnumerator on this FontCollection instance. |
Contains(item: Font) | Calls Contains on this FontCollection instance. |
Contains(name: string) | |
CopyTo(array: Font[], index: int) | Calls CopyTo on this FontCollection instance. |
Remove(item: Font) | Calls Remove on this FontCollection instance. |
Add(newFont: Font, resName: string) | Add a font and emit the PDF resource name assigned to it (e.g. |