org.apache.fop.fonts

Class EmbedFontInfo

Implemented Interfaces:
Serializable
Known Direct Subclasses:
CachedFontInfo

public class EmbedFontInfo
extends java.lang.Object
implements Serializable

FontInfo contains meta information on fonts (where is the metrics file etc.)

Field Summary

protected String
embedFile
filename of the main font file
protected List
fontTriplets
the list of associated font triplets
protected boolean
kerning
false, to disable kerning
protected String
metricsFile
filename of the metrics file

Constructor Summary

EmbedFontInfo(String metricsFile, boolean kerning, List fontTriplets, String embedFile)
Main constructor

Method Summary

String
getEmbedFile()
Returns the path to the embeddable font file
List
getFontTriplets()
Returns the list of font triplets associated with this font.
boolean
getKerning()
Determines if kerning is enabled
String
getMetricsFile()
Returns the path to the metrics file
String
toString()

Field Details

embedFile

protected String embedFile
filename of the main font file

fontTriplets

protected List fontTriplets
the list of associated font triplets

kerning

protected boolean kerning
false, to disable kerning

metricsFile

protected String metricsFile
filename of the metrics file

Constructor Details

EmbedFontInfo

public EmbedFontInfo(String metricsFile,
                     boolean kerning,
                     List fontTriplets,
                     String embedFile)
Main constructor
Parameters:
metricsFile - Path to the xml file containing font metrics
kerning - True if kerning should be enabled
fontTriplets - List of font triplets to associate with this font
embedFile - Path to the embeddable font file (may be null)

Method Details

getEmbedFile

public String getEmbedFile()
Returns the path to the embeddable font file
Returns:
the font file path

getFontTriplets

public List getFontTriplets()
Returns the list of font triplets associated with this font.
Returns:
List of font triplets

getKerning

public boolean getKerning()
Determines if kerning is enabled
Returns:
True if enabled

getMetricsFile

public String getMetricsFile()
Returns the path to the metrics file
Returns:
the metrics file path

toString

public String toString()
See Also:
java.lang.Object.toString()

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.