gnu.awt.xlib
Class XFontMetrics
- Serializable
int | getAscent() - Returns the ascent of the font, which is the distance from the base
to the top of the majority of characters in the set.
|
int | getDescent() - Returns the descent of the font, which is the distance from the base
to the bottom of the majority of characters in the set.
|
int | getMaxAscent() - Returns the maximum ascent value.
|
int | getMaxDescent() - Returns the maximum descent value.
|
int | stringWidth(String str) - Returns the total width of the specified string
|
bytesWidth , charWidth , charWidth , charsWidth , getAscent , getDescent , getFont , getHeight , getLeading , getLineMetrics , getLineMetrics , getLineMetrics , getLineMetrics , getMaxAdvance , getMaxAscent , getMaxCharBounds , getMaxDecent , getMaxDescent , getStringBounds , getStringBounds , getStringBounds , getStringBounds , getWidths , hasUniformLineMetrics , stringWidth , toString |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
getAscent
public int getAscent()
Returns the ascent of the font, which is the distance from the base
to the top of the majority of characters in the set. Some characters
can exceed this value however.
- getAscent in interface FontMetrics
getDescent
public int getDescent()
Returns the descent of the font, which is the distance from the base
to the bottom of the majority of characters in the set. Some characters
can exceed this value however.
- getDescent in interface FontMetrics
getMaxAscent
public int getMaxAscent()
Returns the maximum ascent value. This is the maximum distance any
character in the font rised above the baseline.
- getMaxAscent in interface FontMetrics
- The maximum ascent for this font.
getMaxDescent
public int getMaxDescent()
Returns the maximum descent value. This is the maximum distance any
character in the font extends below the baseline.
- getMaxDescent in interface FontMetrics
- The maximum descent for this font.
Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
details.