fi.hut.tml.xsmiles.mlfc.xslfo.render
Class AWTFontInfo

java.lang.Object
  extended byorg.apache.fop.layout.FontInfo
      extended byfi.hut.tml.xsmiles.mlfc.xslfo.render.AWTFontInfo

public class AWTFontInfo
extends org.apache.fop.layout.FontInfo

Edited for XSMIles to dynamically create new font metrics objects for fonts not defined in FontSetup

Author:
Mikko Honkala

Constructor Summary
AWTFontInfo()
           
 
Method Summary
 void addFontProperties(java.lang.String name, java.lang.String family, java.lang.String style, java.lang.String weight)
           
 void addMetrics(java.lang.String name, org.apache.fop.layout.FontMetric metrics)
           
 java.lang.String fontLookup(java.lang.String family, java.lang.String style, java.lang.String weight)
           
 java.util.Hashtable getFonts()
           
 org.apache.fop.layout.FontMetric getMetricsFor(java.lang.String fontName)
           
 org.apache.fop.layout.FontMetric getMetricsFor(java.lang.String family, java.lang.String style, java.lang.String weight)
           
 
Methods inherited from class org.apache.fop.layout.FontInfo
createFontKey, fontLookup, getUsedFonts, hasFont
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWTFontInfo

public AWTFontInfo()
Method Detail

addFontProperties

public void addFontProperties(java.lang.String name,
                              java.lang.String family,
                              java.lang.String style,
                              java.lang.String weight)

addMetrics

public void addMetrics(java.lang.String name,
                       org.apache.fop.layout.FontMetric metrics)

fontLookup

public java.lang.String fontLookup(java.lang.String family,
                                   java.lang.String style,
                                   java.lang.String weight)
                            throws org.apache.fop.apps.FOPException
Throws:
org.apache.fop.apps.FOPException

getFonts

public java.util.Hashtable getFonts()

getMetricsFor

public org.apache.fop.layout.FontMetric getMetricsFor(java.lang.String fontName)
                                               throws org.apache.fop.apps.FOPException
Throws:
org.apache.fop.apps.FOPException

getMetricsFor

public org.apache.fop.layout.FontMetric getMetricsFor(java.lang.String family,
                                                      java.lang.String style,
                                                      java.lang.String weight)
                                               throws org.apache.fop.apps.FOPException
Throws:
org.apache.fop.apps.FOPException


X-Smiles 1.2