|
fop 1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.fop.fonts.EmbedFontInfo
FontInfo contains meta information on fonts (where is the metrics file etc.)
| Field Summary | |
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 Summary | |
EmbedFontInfo(java.lang.String metricsFile,
boolean kerning,
java.util.List fontTriplets,
java.lang.String embedFile,
java.lang.String subFontName)
Main constructor |
|
| Method Summary | |
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()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
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
| Constructor Detail |
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)| Method Detail |
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()
|
fop 1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||