summaryrefslogtreecommitdiffstats
path: root/src/test/com/jogamp/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-02-14 09:42:34 +0100
committerSven Gothel <[email protected]>2023-02-14 09:42:34 +0100
commit3c3f663bfe25e296b46344a2825c6a2714c29c89 (patch)
tree58ba62da8c666979fd76e1eb3c4f6680e9b8408a /src/test/com/jogamp/opengl
parent53259c43474eb9bc1475365ed251344202c4c179 (diff)
Graph Font: getGlyph(char symbol -> int glyph_id), add kerning to getPointsBoundsFU(); Glyph: Drop getSymbol()
Diffstat (limited to 'src/test/com/jogamp/opengl')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/graph/TestFontsNEWT00.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/graph/TestFontsNEWT00.java b/src/test/com/jogamp/opengl/test/junit/graph/TestFontsNEWT00.java
index be654d345..5b254d46d 100644
--- a/src/test/com/jogamp/opengl/test/junit/graph/TestFontsNEWT00.java
+++ b/src/test/com/jogamp/opengl/test/junit/graph/TestFontsNEWT00.java
@@ -83,7 +83,7 @@ public class TestFontsNEWT00 extends UITestCase {
void testFontGlyph01(final Font font, final char c, final float pixelSize) {
final int glyphID = font.getGlyphID(c);
final int s0 = font.getAdvanceWidthFU(glyphID);
- final Font.Glyph glyph = font.getGlyph(c);
+ final Font.Glyph glyph = font.getGlyph(glyphID);
final int s1 = glyph.getAdvanceFU();
final int unitsPerEM = font.getMetrics().getUnitsPerEM();
@@ -117,7 +117,7 @@ public class TestFontsNEWT00 extends UITestCase {
void testFontGlyph02(final Font font, final char left, final char right) {
final int glyphid_left = font.getGlyphID(left);
final int glyphid_right = font.getGlyphID(right);
- final Font.Glyph glyph_left = font.getGlyph(left);
+ final Font.Glyph glyph_left = font.getGlyph(glyphid_left);
final int k_val = glyph_left.getKerningFU(glyphid_right);