FontInfoCollection
Overview
FontInfoCollection is a class in Aspose.Words FOSS for Java.
Inherits from: Iterable<FontInfo>.
Represents a collection of fonts used in a document.
Edition status of its 14 listed members (a property and its accessor methods are listed separately, overloads once): 14 not yet exercised by a verified example.
This class declares 11 methods for FontInfoCollection objects in Java programs.
Available methods include: contains, get, getCount, getEmbedSystemFonts, getEmbedTrueTypeFonts, getSaveSubsetFonts, iterator, setEmbedSystemFonts, setEmbedTrueTypeFonts, setSaveSubsetFonts.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: count, embedSystemFonts, embedTrueTypeFonts, saveSubsetFonts.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Gets the number of elements contained in the collection. |
embedTrueTypeFonts | boolean | Read/Write | Specifies whether or not to embed TrueType fonts in a document when it is saved. |
embedSystemFonts | boolean | Read/Write | Specifies whether or not to embed System fonts into the document. |
saveSubsetFonts | boolean | Read/Write | Specifies whether or not to save a subset of the embedded TrueType fonts with the document. |
Methods
| Signature | Description |
|---|---|
getCount() → int | Gets the number of elements contained in the collection. |
get(name: String) → FontInfo | Gets a font with the specified name. |
get(index: int) → FontInfo | Gets a font at the specified index. |
iterator() → Iterator<FontInfo> | Returns an iterator object that can be used to iterate over all items in the collection. |
contains(name: String) → boolean | Determines whether the collection contains a font with the given name. |
getEmbedTrueTypeFonts() → boolean | Specifies whether or not to embed TrueType fonts in a document when it is saved. |
setEmbedTrueTypeFonts(value: boolean) | Sets the embed true type fonts value. |
getEmbedSystemFonts() → boolean | Specifies whether or not to embed System fonts into the document. |
setEmbedSystemFonts(value: boolean) | Sets the embed system fonts value. |
getSaveSubsetFonts() → boolean | Specifies whether or not to save a subset of the embedded TrueType fonts with the document. |
setSaveSubsetFonts(value: boolean) | Sets the save subset fonts value. |