org.apache.fop.render.afp.fonts
public class FopCharacterSet extends CharacterSet
Constructor and Description |
---|
FopCharacterSet(java.lang.String codePage,
java.lang.String encoding,
java.lang.String name,
int size,
Typeface charSet)
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.
|
int |
getFirstChar()
The first character in the character set
|
int |
getLastChar()
The last character in the character set
|
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.
|
int |
width(int character)
Get the width (in 1/1000ths of a point size) of the character
identified by the parameter passed.
|
addCharacterSetOrientation, getCodePage, getEncoding, getName, getNameBytes, getPath
public FopCharacterSet(java.lang.String codePage, java.lang.String encoding, java.lang.String name, int size, Typeface charSet)
codePage
- the code page identifierencoding
- the encoding of the fontname
- the character set namesize
- the font sizecharSet
- the fop character setpublic int getAscender()
getAscender
in class CharacterSet
public int getCapHeight()
getCapHeight
in class CharacterSet
public int getDescender()
getDescender
in class CharacterSet
public int getFirstChar()
getFirstChar
in class CharacterSet
public int getLastChar()
getLastChar
in class CharacterSet
public int[] getWidths()
getWidths
in class CharacterSet
public int getXHeight()
getXHeight
in class CharacterSet
public int width(int character)
width
in class CharacterSet
character
- the character from which the width will be calculatedpublic char mapChar(char c)
mapChar
in class CharacterSet
c
- character to mapCopyright 1999-2008 The Apache Software Foundation. All Rights Reserved.