public class EmbedFontInfo
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
advanced
false, to disable advanced typographic features
|
protected EmbeddingMode |
embeddingMode
the requested embedding mode for this font
|
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,
boolean advanced,
java.util.List<FontTriplet> fontTriplets,
java.lang.String embedFile,
java.lang.String subFontName)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAdvanced()
Determines if advanced typographic features are enabled
|
EmbeddingMode |
getEmbeddingMode()
Returns the embedding mode for this font.
|
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<FontTriplet> |
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 |
setEmbeddingMode(EmbeddingMode embeddingMode)
Sets the embedding mode for this font, currently not supported for Type 1 fonts.
|
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 boolean advanced
protected EncodingMode encodingMode
protected EmbeddingMode embeddingMode
protected java.lang.String postScriptName
protected java.lang.String subFontName
public EmbedFontInfo(java.lang.String metricsFile, boolean kerning, boolean advanced, java.util.List<FontTriplet> fontTriplets, java.lang.String embedFile, java.lang.String subFontName)
metricsFile
- path to the xml file containing font metricskerning
- true if kerning should be enabledadvanced
- true if advanced typography features 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 boolean getAdvanced()
public java.lang.String getSubFontName()
public java.lang.String getPostScriptName()
public void setPostScriptName(java.lang.String postScriptName)
postScriptName
- the PostScript namepublic java.util.List<FontTriplet> getFontTriplets()
public boolean isEmbedded()
public EmbeddingMode getEmbeddingMode()
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 void setEmbeddingMode(EmbeddingMode embeddingMode)
embeddingMode
- the new embedding mode.public java.lang.String toString()
toString
in class java.lang.Object
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.