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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
getAscent(float pixelSize)
AABBox
getBBox(AABBox dest, float pixelSize, float[] tmpV3)
float
getDescent(float pixelSize)
float
getLineGap(float pixelSize)
float
getMaxExtend(float pixelSize)
float
getScale(float pixelSize)
-
-
-
Method Detail
-
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
AABBox getBBox(AABBox dest, float pixelSize, float[] tmpV3)
- 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'
-
-