|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.afp.fonts.CharacterSetOrientation
The IBM Font Object Content Architecture (FOCA) supports presentation of character shapes by defining their characteristics, which include Font-Description information for identifying the characters, Font-Metric information for positioning the characters, and Character-Shape information for presenting the character images. Presenting a graphic character on a presentation surface requires that you communicate this information clearly to rotate and position characters correctly on the physical or logical page. This class proivdes font metric information for a particular font as by the orientation. This informtaion is obtained directly from the AFP font files which must be installed in the classpath under in the location specified by the path attribute in the afp-font.xml file.
Constructor Summary | |
CharacterSetOrientation(int orientation)
Constructor for the CharacterSetOrientation, the orientation is expressed as the degrees rotation (i.e 0, 90, 180, 270) |
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 |
getOrientation()
The orientation for these metrics in the character set |
int[] |
getWidths()
Get the width (in 1/1000ths of a point size) of all characters in this character set. |
int |
getXHeight()
XHeight refers to the height of the lower case letters above the baseline. |
void |
setAscender(int ascender)
Ascender height is the distance from the character baseline to the top of the character box. |
void |
setCapHeight(int capHeight)
Cap height is the average height of the uppercase characters in a font. |
void |
setDescender(int descender)
Descender depth is the distance from the character baseline to the bottom of a character box. |
void |
setFirstChar(int firstCharacter)
The first character in the character set |
void |
setLastChar(int lastCharacter)
The last character in the character set |
void |
setWidth(int character,
int width)
Set the width (in 1/1000ths of a point size) of the character identified by the parameter passed. |
void |
setXHeight(int xHeight)
XHeight refers to the height of the lower case letters above the baseline. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CharacterSetOrientation(int orientation)
orientation
- the character set orientationMethod Detail |
public int getAscender()
public int getCapHeight()
public int getDescender()
public int getFirstChar()
public int getLastChar()
public int getOrientation()
public int[] getWidths()
public int getXHeight()
public int width(int character)
character
- the character to evaluate
public void setAscender(int ascender)
ascender
- the ascender to setpublic void setCapHeight(int capHeight)
capHeight
- the cap height to setpublic void setDescender(int descender)
descender
- the descender value in millipointspublic void setFirstChar(int firstCharacter)
firstCharacter
- the first characterpublic void setLastChar(int lastCharacter)
lastCharacter
- the last characterpublic void setWidth(int character, int width)
character
- the character for which the width is being setwidth
- the widths of the characterpublic void setXHeight(int xHeight)
xHeight
- the typical height of characters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |