|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.afp.fonts.CharacterSet
org.apache.fop.render.afp.fonts.FopCharacterSet
public class FopCharacterSet
A Character set for a normal FOP font
Field Summary |
---|
Fields inherited from class org.apache.fop.render.afp.fonts.CharacterSet |
---|
codePage, encoding, log, name, path |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.fop.render.afp.fonts.CharacterSet |
---|
addCharacterSetOrientation, getCodePage, getEncoding, getName, getNameBytes, getPath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 setMethod Detail |
---|
public 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 calculated
public char mapChar(char c)
mapChar
in class CharacterSet
c
- character to map
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |