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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FontSetup
public FontSetup()
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 tofontInfo
- font info object to get font information from
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.