diff options
author | Sven Gothel <[email protected]> | 2023-04-14 17:45:23 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-04-14 17:45:23 +0200 |
commit | ac4e63b87cc311004de65230688911df538f0866 (patch) | |
tree | 904dfed84926956147d0a70dbd7b3c86a14c1087 /src/jogl/classes/com | |
parent | 7d4e3a072c4aa8ef3745fa968b3e563064d83e27 (diff) |
Typecast Font: Add API doc for getLineHeight(), remove unused Vec3f import
Diffstat (limited to 'src/jogl/classes/com')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/font/Font.java | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/font/Font.java b/src/jogl/classes/com/jogamp/graph/font/Font.java index 7299d6128..96e0cc523 100644 --- a/src/jogl/classes/com/jogamp/graph/font/Font.java +++ b/src/jogl/classes/com/jogamp/graph/font/Font.java @@ -29,7 +29,6 @@ package com.jogamp.graph.font; import com.jogamp.graph.curve.OutlineShape; import com.jogamp.graph.geom.plane.AffineTransform; -import com.jogamp.opengl.math.Vec3f; import com.jogamp.opengl.math.geom.AABBox; /** @@ -352,7 +351,20 @@ public interface Font { int getLineHeightFU(); /** - * Return line height in font em-size [0..1] + * Return line height, baseline-to-baseline in em-size [0..1], composed from `hhea' table entries. + * <pre> + * return ascent - descent + linegap; + * </pre> + * or + * <pre> + * // lineGap positive value + * // descent negative value + * // ascent positive value + * return ascent - descent + linegap; + * </pre> + * @see Metrics#getAscent() + * @see Metrics#getDescent() + * @see Metrics#getLineGap() */ float getLineHeight(); |