org.apache.fop.layout
Class FontInfo

java.lang.Object
  extended byorg.apache.fop.layout.FontInfo

public class FontInfo
extends Object


Constructor Summary
FontInfo()
           
 
Method Summary
 void addFontProperties(String name, String family, String style, String weight)
           
 void addMetrics(String name, FontMetric metrics)
           
static String createFontKey(String family, String style, String weight)
          Creates a key from the given strings
 String fontLookup(String key)
           
 String fontLookup(String family, String style, String weight)
           
 HashMap getFonts()
           
 FontMetric getMetricsFor(String fontName)
           
 HashMap getUsedFonts()
           
 boolean hasFont(String key)
           
 boolean hasFont(String family, String style, String weight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontInfo

public FontInfo()
Method Detail

addFontProperties

public void addFontProperties(String name,
                              String family,
                              String style,
                              String weight)

addMetrics

public void addMetrics(String name,
                       FontMetric metrics)

fontLookup

public String fontLookup(String family,
                         String style,
                         String weight)
                  throws FOPException
Throws:
FOPException

fontLookup

public String fontLookup(String key)
                  throws FOPException
Throws:
FOPException

hasFont

public boolean hasFont(String family,
                       String style,
                       String weight)

hasFont

public boolean hasFont(String key)

createFontKey

public static String createFontKey(String family,
                                   String style,
                                   String weight)
Creates a key from the given strings


getFonts

public HashMap getFonts()

getUsedFonts

public HashMap getUsedFonts()

getMetricsFor

public FontMetric getMetricsFor(String fontName)
                         throws FOPException
Throws:
FOPException


Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.