|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FontMetrics
Font-metrics are computed for a certain font-size and style. There are no general metrics, which are assumed to be globally available.
The use of these font metrics is application dependent. As building these metrics usually is memory and CPU intensive, this must be done in an application specific context. You certainly want to cache the font data.
Method Summary | |
---|---|
long |
getAscent()
The font ascent is the distance from the font's baseline to the top of most alphanumeric characters. |
BaselineInfo |
getBaselines(int codePoint,
BaselineInfo info)
Baselines are defined for scripts, not glyphs. |
long |
getCharWidth(int codePoint)
|
long |
getDescent()
The font descent is the distance from the font's baseline to the bottom of most alphanumeric characters. |
long |
getItalicAngle()
|
long |
getKerning(int previous,
int codePoint)
|
long |
getLeading()
The standard leading, or interline spacing, is the logical amount of space to be reserved between the descent of one line of text and the ascent of the next line. |
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? |
Method Detail |
---|
long getAscent()
long getDescent()
long getLeading()
long getXHeight()
long getOverlinePosition()
long getUnderlinePosition()
long getStrikeThroughPosition()
long getMaxAscent()
long getMaxDescent()
long getMaxHeight()
long getMaxCharAdvance()
long getCharWidth(int codePoint)
long getKerning(int previous, int codePoint)
long getItalicAngle()
BaselineInfo getBaselines(int codePoint, BaselineInfo info)
codePoint
- info
-
boolean isUniformFontMetrics()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |