public class FontInfoCollection
extends java.lang.Object
implements java.lang.Iterable
Items are FontInfo objects.
You do not create instances of this class directly. Use the DocumentBase.getFontInfos() property to access the collection of fonts defined in the document.
FontInfo,
DocumentBase.getFontInfos()| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.String name)
Determines whether the collection contains a font with the given name.
|
FontInfo |
get(int index)
Gets a font at the specified index.
|
FontInfo |
get(java.lang.String name)
|
int |
getCount()
Gets the number of elements contained in the collection.
|
boolean |
getEmbedSystemFonts()
Specifies whether or not to embed System fonts into the document.
|
boolean |
getEmbedTrueTypeFonts()
Specifies whether or not to embed TrueType fonts in a document when it is saved.
|
boolean |
getSaveSubsetFonts()
Specifies whether or not to save a subset of the embedded TrueType fonts with the document.
|
java.util.Iterator |
iterator()
Returns an iterator object that can be used to iterate over all items in the collection.
|
void |
setEmbedSystemFonts(boolean value)
Specifies whether or not to embed System fonts into the document.
|
void |
setEmbedTrueTypeFonts(boolean value)
Specifies whether or not to embed TrueType fonts in a document when it is saved.
|
void |
setSaveSubsetFonts(boolean value)
Specifies whether or not to save a subset of the embedded TrueType fonts with the document.
|
public int getCount()
public FontInfo get(java.lang.String name)
name - Case-insensitive name of the font to locate.FontInfo value.public FontInfo get(int index)
index - Zero-based index of the font.public java.util.Iterator iterator()
iterator in interface java.lang.Iterablepublic boolean contains(java.lang.String name)
name - Case-insensitive name of the font to locate.public boolean getEmbedTrueTypeFonts()
Embedding TrueType fonts allows others to view the document with the same fonts that were used to create it, but may substantially increase the document size.
This option works for DOC, DOCX and RTF formats only.
boolean value.public void setEmbedTrueTypeFonts(boolean value)
Embedding TrueType fonts allows others to view the document with the same fonts that were used to create it, but may substantially increase the document size.
This option works for DOC, DOCX and RTF formats only.
value - The corresponding boolean value.public boolean getEmbedSystemFonts()
Specifies whether or not to embed System fonts into the document. Default value for this property is false.
This option works only when getEmbedTrueTypeFonts() / setEmbedTrueTypeFonts(boolean) option is set to true.
Setting this property to True is useful if the user is on an East Asian system and wants to create a document that is readable by others who do not have fonts for that language on their system. For example, a user on a Japanese system could choose to embed the fonts in a document so that the Japanese document would be readable on all systems.
This option works for DOC, DOCX and RTF formats only.
boolean value.public void setEmbedSystemFonts(boolean value)
Specifies whether or not to embed System fonts into the document. Default value for this property is false.
This option works only when getEmbedTrueTypeFonts() / setEmbedTrueTypeFonts(boolean) option is set to true.
Setting this property to True is useful if the user is on an East Asian system and wants to create a document that is readable by others who do not have fonts for that language on their system. For example, a user on a Japanese system could choose to embed the fonts in a document so that the Japanese document would be readable on all systems.
This option works for DOC, DOCX and RTF formats only.
value - The corresponding boolean value.public boolean getSaveSubsetFonts()
Specifies whether or not to save a subset of the embedded TrueType fonts with the document. Default value for this property is false.
This option works only when getEmbedTrueTypeFonts() / setEmbedTrueTypeFonts(boolean) property is set to true.
boolean value.public void setSaveSubsetFonts(boolean value)
Specifies whether or not to save a subset of the embedded TrueType fonts with the document. Default value for this property is false.
This option works only when getEmbedTrueTypeFonts() / setEmbedTrueTypeFonts(boolean) property is set to true.
value - The corresponding boolean value.