| org.apache.fop.render.afp.fonts.AFPFont org.apache.fop.render.afp.fonts.RasterFont
RasterFont | public class RasterFont extends AFPFont (Code) | | 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 | |
final protected static Log | log |
Constructor Summary | |
public | RasterFont(String name) 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 | |
public void | addCharacterSet(int size, CharacterSet characterSet) | public 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". | public int | getCapHeight(int size) Obtains the height of capital letters for the specified point size. | public CharacterSet | getCharacterSet(int size) Get the character set metrics for the specified point size. | public 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". | public String | getEncoding() Get the encoding of the font. | public int | getFirstChar() Get the first character in this font. | public int | getLastChar() Get the last character in this font. | public int | getWidth(int character, int size) Obtain the width of the character for the specified point size. | public int[] | getWidths(int size) Get the getWidth (in 1/1000ths of a point size) of all characters in this
character set. | public int[] | getWidths() Get the getWidth (in 1/1000ths of a point size) of all characters in this
character set. | public int | getXHeight(int size) The "x-height" (the height of the letter "x"). | public char | mapChar(char c) Map a Unicode character to a code point in the font. |
log | final protected static Log log(Code) | | Static logging instance
|
RasterFont | public RasterFont(String name)(Code) | | Constructor for the raster font requires the name, weight and style
attribute to be available as this forms the key to the font.
Parameters: name - the name of the font |
getAscender | public int getAscender(int size)(Code) | | 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". Also
used to denote the part of the letter extending above the x-height.
Parameters: size - the point size |
getCapHeight | public int getCapHeight(int size)(Code) | | Obtains the height of capital letters for the specified point size.
Parameters: size - the point size |
getCharacterSet | public CharacterSet getCharacterSet(int size)(Code) | | Get the character set metrics for the specified point size.
Parameters: size - the point size the character set metrics |
getDescender | public int getDescender(int size)(Code) | | The descender is the part of a lowercase letter that extends below the
base line, such as "g", "j", or "p". Also used to denote the part of the
letter extending below the base line.
Parameters: size - the point size |
getEncoding | public String getEncoding()(Code) | | Get the encoding of the font.
the encoding |
getFirstChar | public int getFirstChar()(Code) | | Get the first character in this font.
|
getLastChar | public int getLastChar()(Code) | | Get the last character in this font.
|
getWidth | public int getWidth(int character, int size)(Code) | | Obtain the width of the character for the specified point size.
|
getWidths | public int[] getWidths(int size)(Code) | | Get the getWidth (in 1/1000ths of a point size) of all characters in this
character set.
Parameters: size - the point size the widths of all characters |
getWidths | public int[] getWidths()(Code) | | Get the getWidth (in 1/1000ths of a point size) of all characters in this
character set.
the widths of all characters |
getXHeight | public int getXHeight(int size)(Code) | | The "x-height" (the height of the letter "x").
Parameters: size - the point size |
mapChar | public char mapChar(char c)(Code) | | Map a Unicode character to a code point in the font.
Parameters: c - character to map the mapped character |
|
|