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 TypeMethodDescriptionfloatgetAscent(float pixelSize) floatgetDescent(float pixelSize) floatgetLineGap(float pixelSize) floatgetMaxExtend(float pixelSize) floatgetScale(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 * resolutionfor resolution correct pixel-size, seeFont.getPixelSize(float, float)tmpV3- caller provided temporary 3-component vector- Returns:
- the given and set AABBox 'dest'
-