aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-02-15 04:54:33 +0100
committerSven Göthel <[email protected]>2024-02-15 04:54:33 +0100
commite6b2367f47a0cf976d7eaa173de53474be61f4d5 (patch)
treed0ed4bd6ce7f0364f5d2e7015d09f530df439505
parent6b548c2408b08128a686eef49118d35543a3667d (diff)
TypecastGlyph: Add complex/simple info in toString()
-rw-r--r--src/jogl/classes/jogamp/graph/font/typecast/TypecastGlyph.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/graph/font/typecast/TypecastGlyph.java b/src/jogl/classes/jogamp/graph/font/typecast/TypecastGlyph.java
index d49fb7393..ee82bcac7 100644
--- a/src/jogl/classes/jogamp/graph/font/typecast/TypecastGlyph.java
+++ b/src/jogl/classes/jogamp/graph/font/typecast/TypecastGlyph.java
@@ -272,7 +272,7 @@ public final class TypecastGlyph implements Font.Glyph {
contour_s = "contour";
}
final String name_s = null != name ? name : "";
- final String shape_s = null != shape ? "shape "+shape.getVertexCount()+"v" : "shape null";
+ final String shape_s = null != shape ? "shape["+shape.getVertexCount()+"v, "+(shape.isComplex()?"complex":"simple")+"]" : "shape null";
sb.append("Glyph[id 0x").append(Integer.toHexString(id)).append(", cp 0x").append(Integer.toHexString(codepoint))
.append(", name '").append(name_s).append("', ").append(contour_s)
.append(", ").append(shape_s)
@@ -296,7 +296,7 @@ public final class TypecastGlyph implements Font.Glyph {
contour_s = "contour";
}
final String name_s = null != name ? name : "";
- final String shape_s = null != shape ? "shape "+shape.getVertexCount()+"v" : "shape null";
+ final String shape_s = null != shape ? "shape["+shape.getVertexCount()+"v, "+(shape.isComplex()?"complex":"simple")+"]" : "shape null";
sb.append("Glyph[id 0x").append(Integer.toHexString(id)).append(", cp 0x").append(Integer.toHexString(codepoint))
.append(" name '").append(name_s).append("', ").append(contour_s)
.append(", shape ").append(shape_s)