org.apache.fop.fonts
Class FontSetup
java.lang.Object
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
protected static Log | log - logging instance
|
log
protected static Log log
logging instance
addConfiguredFonts
public static void addConfiguredFonts(FontInfo fontInfo,
List fontInfoList,
int num,
FontResolver resolver)
Add fonts from configuration file starting with internal name F.
fontInfo
- the font info object to set upfontInfoList
- a list of EmbedFontInfo objectsnum
- starting index for internal font numberingresolver
- the font resolver
createMinimalFontResolver
public static FontResolver createMinimalFontResolver()
- a new FontResolver to be used by the font subsystem
setup
public static void setup(FontInfo fontInfo,
List embedList,
FontResolver resolver)
Sets up the font info object.
Adds metrics for basic fonts and useful family-style-weight
triplets for lookup.
fontInfo
- the font info object to set upembedList
- a list of EmbedFontInfo objectsresolver
- the font resolver
setup
public static void setup(FontInfo fontInfo,
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.
fontInfo
- the font info object to set upembedList
- a list of EmbedFontInfo objectsresolver
- the font resolverenableBase14Kerning
- true if kerning should be enabled for base 14 fonts
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.