|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.afp.fonts.BaseFont
org.apache.fop.render.afp.fonts.RasterFont
A font where each character is stored as an array of pixels (a bitmap). Such fonts are not easily scalable, in contrast to vectored fonts. With this type of font, the font metrics information is held in character set files (one for each size and style).
Field Summary | |
protected static org.apache.commons.logging.Log |
LOGGER
Static logging instance |
Fields inherited from class org.apache.fop.render.afp.fonts.BaseFont |
_name, _style, _weight |
Constructor Summary | |
RasterFont(java.lang.String name,
java.lang.String weight,
java.lang.String style)
Constructor for the raster font requires the name, weight and style attribute to be available as this forms the key to the font. |
Method Summary | |
void |
addCharacterSet(int size,
CharacterSet characterSet)
|
int |
getAscender(int size)
The ascender is the part of a lowercase letter that extends above the "x-height" (the height of the letter "x"), such as "d", "t", or "h". |
int |
getCapHeight(int size)
Obtains the height of capital letters for the specified point size. |
CharacterSet |
getCharacterSet(int size)
Get the character set metrics for the specified point size. |
int |
getDescender(int size)
The descender is the part of a lowercase letter that extends below the base line, such as "g", "j", or "p". |
int |
getFirstChar()
Get the first character in this font. |
int |
getLastChar()
Get the last character in this font. |
int[] |
getWidths(int size)
Get the width (in 1/1000ths of a point size) of all characters in this character set. |
int |
getXHeight(int size)
The "x-height" (the height of the letter "x"). |
int |
width(int character,
int size)
Obtain the width of the character for the specified point size. |
Methods inherited from class org.apache.fop.render.afp.fonts.BaseFont |
getName, getStyle, getWeight |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final org.apache.commons.logging.Log LOGGER
Constructor Detail |
public RasterFont(java.lang.String name, java.lang.String weight, java.lang.String style)
name
- the name of the fontweight
- the weight of the fontstyle
- the style of the fontMethod Detail |
public void addCharacterSet(int size, CharacterSet characterSet)
public CharacterSet getCharacterSet(int size)
size
- the point size
public int getFirstChar()
public int getLastChar()
public int getAscender(int size)
size
- the point sizepublic int getCapHeight(int size)
size
- the point sizepublic int getDescender(int size)
size
- the point sizepublic int getXHeight(int size)
size
- the point sizepublic int width(int character, int size)
public int[] getWidths(int size)
size
- the point size
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |