Package com.jogamp.graph.font
Interface Font.Metrics
- Enclosing interface:
- Font
public static interface Font.Metrics
Metrics for font
Depending on the font's direction, horizontal or vertical,
the following tables shall be used:
Vertical http://developer.apple.com/fonts/TTRefMan/RM06/Chap6vhea.html
Horizontal http://developer.apple.com/fonts/TTRefMan/RM06/Chap6hhea.html
-
Method Summary
Modifier and TypeMethodDescriptionfloat
getAscent
(float pixelSize) float
getDescent
(float pixelSize) float
getLineGap
(float pixelSize) float
getMaxExtend
(float pixelSize) float
getScale
(float pixelSize)
-
Method Details
-
getAscent
float getAscent(float pixelSize) -
getDescent
float getDescent(float pixelSize) -
getLineGap
float getLineGap(float pixelSize) -
getMaxExtend
float getMaxExtend(float pixelSize) -
getScale
float getScale(float pixelSize) -
getBBox
- Parameters:
dest
- AABBox instance set to this metrics boundary w/ given pixelSizepixelSize
- UsepointSize * resolution
for resolution correct pixel-size, seeFont.getPixelSize(float, float)
tmpV3
- caller provided temporary 3-component vector- Returns:
- the given and set AABBox 'dest'
-