org.apache.fop.render.afp.fonts
Class AFPFontReader
java.lang.Object
org.apache.fop.render.afp.fonts.AFPFontReader
public final class AFPFontReader
extends java.lang.Object
The AFPFontReader is responsible for reading the font attributes from binary
code page files and the character set metric files. In IBM font structure, a
code page maps each character of text to the characters in a character set.
Each character is translated into a code point. When the character is
printed, each code point is matched to a character ID on the code page
specified. The character ID is then matched to the image (raster pattern or
outline pattern) of the character in the character set specified. The image
in the character set is the image that is printed in the document. To be a
valid code page for a particular character set, all character IDs in the code
page must be included in that character set.
This class will read the
font information from the binary code page files and character set metric
files in order to determine the correct metrics to use when rendering the
formatted object.
protected static Log | log - Static logging instance
|
void | loadCharacterSetMetric(CharacterSet characterSet) - Load the font details and metrics into the CharacterSetMetric object,
this will use the actual afp code page and character set files to load
the object with the necessary metrics.
|
log
protected static final Log log
Static logging instance
loadCharacterSetMetric
public void loadCharacterSetMetric(CharacterSet characterSet)
Load the font details and metrics into the CharacterSetMetric object,
this will use the actual afp code page and character set files to load
the object with the necessary metrics.
characterSet
- the CharacterSetMetric object to populate
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.