fop 0.92beta

org.apache.fop.render.java2d
Class FontSetup

java.lang.Object
  extended byorg.apache.fop.render.java2d.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 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)
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
graphics - needed for acces to font metrics

fop 0.92beta

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