FontInfoCollection
Overview
FontInfoCollection is a class in Aspose.Words FOSS for .NET.
Inherits from: IEnumerable<FontInfo>.
Represents a collection of fonts used in a document.
This class provides 2 methods for working with FontInfoCollection objects in .NET programs.
Available methods include: Contains, GetEnumerator.
All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package.
Properties: Count, EmbedSystemFonts, EmbedTrueTypeFonts, SaveSubsetFonts.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | Gets the number of elements contained in the collection. |
EmbedTrueTypeFonts | bool | Read/Write | Specifies whether or not to embed TrueType fonts in a document when it is saved. |
EmbedSystemFonts | bool | Read/Write | Specifies whether or not to embed System fonts into the document. |
SaveSubsetFonts | bool | Read/Write | Specifies whether or not to save a subset of the embedded TrueType fonts with the document. |
Methods
| Signature | Description |
|---|---|
GetEnumerator() | Returns an enumeratoriteratorenumerator object that can be used to iterate over all items in the collection. |
Contains(name: string) | Determines whether the collection contains a font with the given name. |