org.apache.fop.render.pdf
Class FontSetup

java.lang.Object
  |
  +--org.apache.fop.render.pdf.FontSetup

public class FontSetup
extends java.lang.Object

sets up the PDF fonts. 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 addConfiguredFonts(FontInfo fontInfo, int num)
          Add fonts from configuration file starting with internalnames F
static void addToResources(PDFDocument doc, FontInfo fontInfo)
          add the fonts in the font info to the PDF document
static void setup(FontInfo fontInfo)
          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)
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

addConfiguredFonts

public static void addConfiguredFonts(FontInfo fontInfo,
                                      int num)
Add fonts from configuration file starting with internalnames F

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


Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.