fop 0.95

org.apache.fop.fonts
Class FontSetup

java.lang.Object
  extended by org.apache.fop.fonts.FontSetup

public class FontSetup
extends java.lang.Object

Default fonts for FOP application; currently this uses PDF's fonts by default. Assigns the font (with metrics) to internal names like "F1" and assigns family-style-weight triplets to the fonts


Field Summary
protected static org.apache.commons.logging.Log log
          logging instance
 
Constructor Summary
FontSetup()
           
 
Method Summary
static void addConfiguredFonts(FontInfo fontInfo, java.util.List fontInfoList, int num, FontResolver resolver)
          Add fonts from configuration file starting with internal name F.
static FontResolver createMinimalFontResolver()
           
static void setup(FontInfo fontInfo, java.util.List embedList, FontResolver resolver)
          Sets up the font info object.
static void setup(FontInfo fontInfo, java.util.List embedList, FontResolver resolver, boolean enableBase14Kerning)
          Sets up the font info object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
logging instance

Constructor Detail

FontSetup

public FontSetup()
Method Detail

setup

public static void setup(FontInfo fontInfo,
                         java.util.List embedList,
                         FontResolver resolver)
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
embedList - a list of EmbedFontInfo objects
resolver - the font resolver

setup

public static void setup(FontInfo fontInfo,
                         java.util.List embedList,
                         FontResolver resolver,
                         boolean enableBase14Kerning)
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
embedList - a list of EmbedFontInfo objects
resolver - the font resolver
enableBase14Kerning - true if kerning should be enabled for base 14 fonts

addConfiguredFonts

public static void addConfiguredFonts(FontInfo fontInfo,
                                      java.util.List fontInfoList,
                                      int num,
                                      FontResolver resolver)
Add fonts from configuration file starting with internal name F.

Parameters:
fontInfo - the font info object to set up
fontInfoList - a list of EmbedFontInfo objects
num - starting index for internal font numbering
resolver - the font resolver

createMinimalFontResolver

public static FontResolver createMinimalFontResolver()
Returns:
a new FontResolver to be used by the font subsystem

fop 0.95

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