org.apache.fop.render.awt
Class FontSetup

java.lang.Object
  |
  +--org.apache.fop.render.awt.FontSetup

public class FontSetup
extends java.lang.Object

sets up the AWT fonts. It is similar to org.apache.fop.render.pdf.FontSetup. Assigns the font (with metrics) to internal names like "F1" and assigns family-style-weight triplets to the fonts


Constructor Summary
FontSetup()
           
 
Method Summary
static void addConfiguredFonts(FontInfo fontInfo, int num, java.awt.Graphics2D graphics)
          Add fonts from configuration file starting with internalnames F
static void setup(FontInfo fontInfo, java.awt.Graphics2D graphics)
          sets up the font info object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontSetup

public FontSetup()
Method Detail

setup

public static void setup(FontInfo fontInfo,
                         java.awt.Graphics2D graphics)
                  throws FOPException
sets up the font info object. adds metrics for basic fonts and useful family-style-weight triplets for lookup
Parameters:
fontInfo - the font info object to set up
parent - needed, since a live AWT component is needed to get a valid java.awt.FontMetrics object

addConfiguredFonts

public static void addConfiguredFonts(FontInfo fontInfo,
                                      int num,
                                      java.awt.Graphics2D graphics)
                               throws FOPException
Add fonts from configuration file starting with internalnames F
Parameters:
fontInfo - FontInfo from Configuration
num - starting index
graphics - Graphics2D to work on
Throws:
FOPException - in case of an error during font setup


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