|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FontMetrics
Common font metrics
Method Summary | |
---|---|
int |
charsWidth(char[] chars,
int off,
int len)
Returns the total advance width for showing the specified array of characters in this Font . |
int |
charWidth(char c)
Get the char width |
int |
getAscent()
The font ascent is the distance from the font's baseline to the top of most alphanumeric characters. |
int |
getDescent()
The font descent is the distance from the font's baseline to the bottom of most alphanumeric characters with descenders. |
int |
getHeight()
|
int |
getLeading()
Determines the standard leading of the Font described by this FontMetrics
object. |
int |
stringWidth(java.lang.String text)
Returns the total advance width for showing the specified String in this Font . |
Method Detail |
---|
int charsWidth(char[] chars, int off, int len)
Font
.
chars
- the array of characters to be measuredoff
- the start offset of the characters in the arraylen
- the number of characters to be measured from the array
char
array in the font described by
this FontMetrics
object.int getAscent()
int getDescent()
int stringWidth(java.lang.String text)
String
in this Font
.
text
- The text.
int getHeight()
int charWidth(char c)
c
- The char
int getLeading()
Font
described by this FontMetrics
object. 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. The height metric is calculated to include this extra space.
Font
.
|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |