org.apache.fop.render.java2d

Class 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 Log
log
logging instance

Method Summary

static void
setup(FontInfo fontInfo, List configuredFontList, FontResolver resolver, Graphics2D graphics)
Sets up the font info object.

Field Details

log

protected static Log log
logging instance

Method Details

setup

public static void setup(FontInfo fontInfo,
                         List configuredFontList,
                         FontResolver resolver,
                         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

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