org.apache.fop.render.pdf
Class FontSetup


public class FontSetup

sets up the PDF fonts. Assigns the font (with metrics) to internal names like "F1" and assigns family-style-weight triplets to the fonts


Method Summary
 static voidaddToResources(PDFDocument doc, FontInfo fontInfo)
          add the fonts in the font info to the PDF document
 static voidsetup(FontInfo fontInfo)
          sets up the font info object.

Method Detail

addToResources

public static void addToResources(PDFDocument doc, FontInfo fontInfo)
add the fonts in the font info to the PDF document
Parameters:
doc - PDF document to add fonts to
fontInfo - font info object to get font information from

setup

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