fop 0.95

org.apache.fop.render.java2d
Class FontSetup

java.lang.Object
  extended by org.apache.fop.render.java2d.FontSetup

public class FontSetup
extends java.lang.Object

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


Field Summary
protected static org.apache.commons.logging.Log log
          logging instance
 
Constructor Summary
FontSetup()
           
 
Method Summary
static void setup(FontInfo fontInfo, java.util.List configuredFontList, FontResolver resolver, 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
 

Field Detail

log

protected static org.apache.commons.logging.Log log
logging instance

Constructor Detail

FontSetup

public FontSetup()
Method Detail

setup

public static void setup(FontInfo fontInfo,
                         java.util.List configuredFontList,
                         FontResolver resolver,
                         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
configuredFontList - of fop config fonts
resolver - for resolving the font file URI
graphics - needed for access to font metrics

fop 0.95

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