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.
- Author:
- Pete Townsend
Field Summary |
protected static org.apache.commons.logging.Log |
log
Static logging instance |
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.commons.logging.Log log
- Static logging instance
AFPFontReader
public AFPFontReader()
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.
- Parameters:
characterSet
- the CharacterSetMetric object to populate
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.