aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/graph
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-04-14 17:45:23 +0200
committerSven Gothel <[email protected]>2023-04-14 17:45:23 +0200
commitac4e63b87cc311004de65230688911df538f0866 (patch)
tree904dfed84926956147d0a70dbd7b3c86a14c1087 /src/jogl/classes/com/jogamp/graph
parent7d4e3a072c4aa8ef3745fa968b3e563064d83e27 (diff)
Typecast Font: Add API doc for getLineHeight(), remove unused Vec3f import
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph')
-rw-r--r--src/jogl/classes/com/jogamp/graph/font/Font.java16
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();