fop 0.95

org.apache.fop.fonts
Class EmbedFontInfo

java.lang.Object
  extended by org.apache.fop.fonts.EmbedFontInfo
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CachedFontInfo

public class EmbedFontInfo
extends java.lang.Object
implements java.io.Serializable

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

See Also:
Serialized Form

Field Summary
protected  java.lang.String embedFile
          filename of the main font file
protected  java.util.List fontTriplets
          the list of associated font triplets
protected  boolean kerning
          false, to disable kerning
protected  java.lang.String metricsFile
          filename of the metrics file
 
Constructor Summary
EmbedFontInfo(java.lang.String metricsFile, boolean kerning, java.util.List fontTriplets, java.lang.String embedFile)
          Main constructor
 
Method Summary
 java.lang.String getEmbedFile()
          Returns the path to the embeddable font file
 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 toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

metricsFile

protected java.lang.String metricsFile
filename of the metrics file


embedFile

protected java.lang.String embedFile
filename of the main font file


kerning

protected boolean kerning
false, to disable kerning


fontTriplets

protected java.util.List fontTriplets
the list of associated font triplets

Constructor Detail

EmbedFontInfo

public EmbedFontInfo(java.lang.String metricsFile,
                     boolean kerning,
                     java.util.List fontTriplets,
                     java.lang.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 Detail

getMetricsFile

public java.lang.String getMetricsFile()
Returns the path to the metrics file

Returns:
the metrics file path

getEmbedFile

public java.lang.String getEmbedFile()
Returns the path to the embeddable font file

Returns:
the font file path

getKerning

public boolean getKerning()
Determines if kerning is enabled

Returns:
True if enabled

getFontTriplets

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

Returns:
List of font triplets

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

fop 0.95

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