org.apache.fop.render.afp.fonts
Class FopCharacterSet
public class FopCharacterSet
A Character set for a normal FOP font
FopCharacterSet(String codePage, String encoding, String name, int size, Typeface characterSet) - Constructor for the CharacterSetMetric object, the character set is used
to load the font information from the actual AFP font.
|
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 , getAscender , getCapHeight , getCodePage , getDescender , getEncoding , getFirstChar , getLastChar , getName , getNameBytes , getPath , getWidths , getXHeight , mapChar , width |
FopCharacterSet
public FopCharacterSet(String codePage,
String encoding,
String name,
int size,
Typeface characterSet)
Constructor for the CharacterSetMetric object, the character set is used
to load the font information from the actual AFP font.
codePage
- the code page identifierencoding
- the encoding of the fontname
- the character set namesize
- the font sizecharacterSet
- the fop character set
getAscender
public int getAscender()
Ascender height is the distance from the character baseline to the
top of the character box. A negative ascender height signifies that
all of the graphic character is below the character baseline. For
a character rotation other than 0, ascender height loses its
meaning when the character is lying on its side or is upside down
with respect to normal viewing orientation. For the general case,
Ascender Height is the character???s most positive y-axis value.
For bounded character boxes, for a given character having an
ascender, ascender height and baseline offset are equal.
- getAscender in interface CharacterSet
- the ascender value in millipoints
getCapHeight
public int getCapHeight()
Cap height is the average height of the uppercase characters in
a font. This value is specified by the designer of a font and is
usually the height of the uppercase M.
- getCapHeight in interface CharacterSet
- the cap height value in millipoints
getDescender
public int getDescender()
Descender depth is the distance from the character baseline to
the bottom of a character box. A negative descender depth signifies
that all of the graphic character is above the character baseline.
- getDescender in interface CharacterSet
- the descender value in millipoints
getWidths
public int[] getWidths()
Get the width (in 1/1000ths of a point size) of all characters
- getWidths in interface CharacterSet
- the widths of all characters
getXHeight
public int getXHeight()
XHeight refers to the height of the lower case letters above the baseline.
- getXHeight in interface CharacterSet
- the typical height of characters
mapChar
public char mapChar(char c)
Map a Unicode character to a code point in the font.
- mapChar in interface CharacterSet
width
public int width(int character)
Get the width (in 1/1000ths of a point size) of the character
identified by the parameter passed.
- width in interface CharacterSet
character
- the character from which the width will be calculated
- the width of the character
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.