|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fonts.EmbedFontInfo
public class EmbedFontInfo
FontInfo contains meta information on fonts (where is the metrics file etc.) TODO: We need to remove this class and think about more intelligent design patterns (Data classes => Procedural code)
Field Summary | |
---|---|
protected boolean |
advanced
false, to disable advanced typographic features |
protected boolean |
kerning
false, to disable kerning |
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(FontUris fontUris,
boolean kerning,
boolean advanced,
java.util.List<FontTriplet> fontTriplets,
java.lang.String subFontName)
Main constructor |
|
EmbedFontInfo(FontUris fontUris,
boolean kerning,
boolean advanced,
java.util.List<FontTriplet> fontTriplets,
java.lang.String subFontName,
EncodingMode encodingMode,
EmbeddingMode embeddingMode,
boolean simulateStyle,
boolean embedAsType1)
Main constructor |
Method Summary | |
---|---|
boolean |
getAdvanced()
Determines if advanced typographic features are enabled |
boolean |
getEmbedAsType1()
|
EmbeddingMode |
getEmbeddingMode()
Returns the embedding mode for this font. |
java.net.URI |
getEmbedURI()
Returns the URI to the embeddable font resource |
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. |
FontUris |
getFontUris()
|
boolean |
getKerning()
Determines if kerning is enabled |
java.net.URI |
getMetricsURI()
Returns the URI of the metrics XML resource |
java.lang.String |
getPostScriptName()
Returns the PostScript name of the font. |
boolean |
getSimulateStyle()
Determines whether the font can simulate a style such as bold or italic. |
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 |
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 final boolean kerning
protected final boolean advanced
protected java.lang.String postScriptName
protected java.lang.String subFontName
Constructor Detail |
---|
public EmbedFontInfo(FontUris fontUris, boolean kerning, boolean advanced, java.util.List<FontTriplet> fontTriplets, java.lang.String subFontName, EncodingMode encodingMode, EmbeddingMode embeddingMode, boolean simulateStyle, boolean embedAsType1)
metricsURI
- the URI of the XML resource 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 fontembedURI
- Path to the embeddable font file (may be null)subFontName
- the sub-fontname used for TrueType Collections (null otherwise)encodingMode
- the encoding mode to use for this fontpublic EmbedFontInfo(FontUris fontUris, boolean kerning, boolean advanced, java.util.List<FontTriplet> fontTriplets, java.lang.String subFontName)
metricsURI
- the URI of the XML resource containing font metricskerning
- True if kerning should be enabledfontTriplets
- List of font triplets to associate with this fontembedURI
- Path to the embeddable font file (may be null)subFontName
- the sub-fontname used for TrueType Collections (null otherwise)Method Detail |
---|
public java.net.URI getMetricsURI()
public java.net.URI getEmbedURI()
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 boolean getSimulateStyle()
public boolean getEmbedAsType1()
public java.lang.String toString()
toString
in class java.lang.Object
public FontUris getFontUris()
|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |