public class FopCharacterSet extends CharacterSet
codePage, DEFAULT_CODEPAGE, DEFAULT_ENCODING, encoding, LOG, name| Constructor and Description |
|---|
FopCharacterSet(java.lang.String codePage,
java.lang.String encoding,
java.lang.String name,
Typeface charSet,
AFPEventProducer eventProducer)
Constructor for the CharacterSetMetric object, the character set is used
to load the font information from the actual AFP font.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAscender()
Ascender height is the distance from the character baseline to the
top of the character box.
|
int |
getCapHeight()
Cap height is the average height of the uppercase characters in
a font.
|
int |
getDescender()
Descender depth is the distance from the character baseline to
the bottom of a character box.
|
char |
getFirstChar()
The first character in the character set
|
char |
getLastChar()
The last character in the character set
|
int |
getWidth(char character)
Get the width (in 1/1000ths of a point size) of the character
identified by the parameter passed.
|
int[] |
getWidths()
Get the width (in 1/1000ths of a point size) of all characters
|
int |
getXHeight()
XHeight refers to the height of the lower case letters above the baseline.
|
char |
mapChar(char c)
Map a Unicode character to a code point in the font.
|
addCharacterSetOrientation, encodeChars, getCodePage, getEmSpaceIncrement, getEncoding, getName, getNameBytes, getNominalVerticalSize, getResourceAccessor, getSpaceIncrement, hasChar, setNominalVerticalSizepublic FopCharacterSet(java.lang.String codePage,
java.lang.String encoding,
java.lang.String name,
Typeface charSet,
AFPEventProducer eventProducer)
codePage - the code page identifierencoding - the encoding of the fontname - the character set namecharSet - the fop character seteventProducer - for handling AFP related eventspublic int getAscender()
getAscender in class CharacterSetpublic int getCapHeight()
getCapHeight in class CharacterSetpublic int getDescender()
getDescender in class CharacterSetpublic char getFirstChar()
getFirstChar in class CharacterSetpublic char getLastChar()
getLastChar in class CharacterSetpublic int[] getWidths()
getWidths in class CharacterSetpublic int getXHeight()
getXHeight in class CharacterSetpublic int getWidth(char character)
getWidth in class CharacterSetcharacter - the character from which the width will be calculatedpublic char mapChar(char c)
mapChar in class CharacterSetc - character to mapCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.