public class EmbedFontInfo
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
embedFile
filename of the main font file
|
protected EncodingMode |
encodingMode
the requested encoding mode for the font
|
protected boolean |
kerning
false, to disable kerning
|
protected java.lang.String |
metricsFile
filename of the metrics file
|
protected java.lang.String |
postScriptName
the PostScript name of the font
|
protected java.lang.String |
subFontName
the sub-fontname of the font (used for TrueType Collections, null otherwise)
|
Constructor and Description |
---|
EmbedFontInfo(java.lang.String metricsFile,
boolean kerning,
java.util.List fontTriplets,
java.lang.String embedFile,
java.lang.String subFontName)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEmbedFile()
Returns the path to the embeddable font file
|
EncodingMode |
getEncodingMode()
Returns the requested encoding mode for this font.
|
java.util.List |
getFontTriplets()
Returns the list of font triplets associated with this font.
|
boolean |
getKerning()
Determines if kerning is enabled
|
java.lang.String |
getMetricsFile()
Returns the path to the metrics file
|
java.lang.String |
getPostScriptName()
Returns the PostScript name of the font.
|
java.lang.String |
getSubFontName()
Returns the sub-font name of the font.
|
boolean |
isEmbedded()
Indicates whether the font is only referenced rather than embedded.
|
void |
setEmbedded(boolean value)
Defines whether the font is embedded or not.
|
void |
setEncodingMode(EncodingMode mode)
Sets the requested encoding mode for this font.
|
void |
setPostScriptName(java.lang.String postScriptName)
Sets the PostScript name of the font
|
java.lang.String |
toString() |
protected java.lang.String metricsFile
protected java.lang.String embedFile
protected boolean kerning
protected EncodingMode encodingMode
protected java.lang.String postScriptName
protected java.lang.String subFontName
public EmbedFontInfo(java.lang.String metricsFile, boolean kerning, java.util.List fontTriplets, java.lang.String embedFile, java.lang.String subFontName)
metricsFile
- Path to the xml file containing font metricskerning
- True if kerning should be enabledfontTriplets
- List of font triplets to associate with this fontembedFile
- Path to the embeddable font file (may be null)subFontName
- the sub-fontname used for TrueType Collections (null otherwise)public java.lang.String getMetricsFile()
public java.lang.String getEmbedFile()
public boolean getKerning()
public java.lang.String getSubFontName()
public java.lang.String getPostScriptName()
public void setPostScriptName(java.lang.String postScriptName)
postScriptName
- the PostScript namepublic java.util.List getFontTriplets()
public boolean isEmbedded()
public void setEmbedded(boolean value)
value
- true to embed the font, false to reference itpublic EncodingMode getEncodingMode()
public void setEncodingMode(EncodingMode mode)
mode
- the new encoding modepublic java.lang.String toString()
toString
in class java.lang.Object
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.