FontInfoCollection

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

NameTypeAccessDescription
countintReadGets the number of elements contained in the collection.
embedTrueTypeFontsbooleanRead/WriteSpecifies whether or not to embed TrueType fonts in a document when it is saved.
embedSystemFontsbooleanRead/WriteSpecifies whether or not to embed System fonts into the document.
saveSubsetFontsbooleanRead/WriteSpecifies whether or not to save a subset of the embedded TrueType fonts with the document.

Methods

SignatureDescription
getCount() → intGets the number of elements contained in the collection.
get(name: String) → FontInfoGets a font with the specified name.
get(index: int) → FontInfoGets 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) → booleanDetermines whether the collection contains a font with the given name.
getEmbedTrueTypeFonts() → booleanSpecifies 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() → booleanSpecifies whether or not to embed System fonts into the document.
setEmbedSystemFonts(value: boolean)Sets the embed system fonts value.
getSaveSubsetFonts() → booleanSpecifies whether or not to save a subset of the embedded TrueType fonts with the document.
setSaveSubsetFonts(value: boolean)Sets the save subset fonts value.

See Also