org.pentaho.reporting.libraries.fonts.awt
public class AWTFontMetrics extends Object implements FontMetrics
| Constructor Summary | |
|---|---|
| AWTFontMetrics(Font font, FontContext context) | |
| Method Summary | |
|---|---|
| protected Graphics2D | createGraphics(FontContext context) |
| long | getAscent()
From the baseline to the
|
| BaselineInfo | getBaselines(int c, BaselineInfo info)
Baselines are defined for scripts, not glyphs. |
| long | getCharWidth(int character) |
| long | getDescent() |
| Font | getFont() |
| long | getItalicAngle()
Returns zero, as the AWT renderer will take care of the italic rendering already. |
| long | getKerning(int previous, int character)
This method is EXPENSIVE.
|
| long | getLeading() |
| long | getMaxAscent() |
| long | getMaxCharAdvance() |
| long | getMaxDescent() |
| long | getMaxHeight() |
| long | getOverlinePosition() |
| long | getStrikeThroughPosition() |
| long | getUnderlinePosition() |
| long | getXHeight()
The height of the lowercase 'x'. |
| boolean | isUniformFontMetrics()
Is it guaranteed that the font always returns the same baseline info objct?
|
Returns:
Parameters: c the character that is used to select the script type.
Returns:
Returns: always zero.
Parameters: previous character
Returns:
Returns:
Returns: true, if the baseline info in question is always the same, false otherwise.