org.apache.fop.render.awt
Class FontSetup


public class FontSetup

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


Method Summary
 static voidsetup(FontInfo fontInfo, Component parent)
          sets up the font info object.

Method Detail

setup

public static void setup(FontInfo fontInfo, Component parent)
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