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
Field Summary |
protected static org.apache.commons.logging.Log |
log
logging instance |
Method Summary |
static void |
addConfiguredFonts(FontInfo fontInfo,
java.util.List fontInfoList,
int num)
Add fonts from configuration file starting with internal name F. |
static java.util.List |
buildFontListFromConfiguration(org.apache.avalon.framework.configuration.Configuration cfg)
Builds a list of EmbedFontInfo objects for use with the setup() method. |
static void |
setup(FontInfo fontInfo,
java.util.List embedList)
Sets up the font info object.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.apache.commons.logging.Log log
- logging instance
FontSetup
public FontSetup()
setup
public static void setup(FontInfo fontInfo,
java.util.List embedList)
- 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 upembedList
- ???
addConfiguredFonts
public static void addConfiguredFonts(FontInfo fontInfo,
java.util.List fontInfoList,
int num)
- Add fonts from configuration file starting with internal name F.
- Parameters:
fontInfo
- the font info object to set upfontInfoList
- num
- starting index for internal font numbering
buildFontListFromConfiguration
public static java.util.List buildFontListFromConfiguration(org.apache.avalon.framework.configuration.Configuration cfg)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Builds a list of EmbedFontInfo objects for use with the setup() method.
- Parameters:
cfg
- Configuration object- Returns:
- List the newly created list of fonts
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- if something's wrong with the config data
Copyright 1999-2005 The Apache Software Foundation. All Rights Reserved.