summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-04-20 21:39:21 +0200
committerSven Gothel <[email protected]>2023-04-20 21:39:21 +0200
commita251f5734cc1f5c907f239c3ca3a4f1d4c262058 (patch)
treefe485e886202b6f424d622d93d38cc2d71aa46b2
parent97751b036e945fc3afe5e46a6a0b5f96d2b9698b (diff)
Graph OutlineShape.get{Outline->}VectexCount() renamed
-rw-r--r--src/demos/com/jogamp/opengl/demos/graph/ui/FontView01.java2
-rw-r--r--src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java2
-rw-r--r--src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/FontView01.java b/src/demos/com/jogamp/opengl/demos/graph/ui/FontView01.java
index 86869b5a6..8803fbf14 100644
--- a/src/demos/com/jogamp/opengl/demos/graph/ui/FontView01.java
+++ b/src/demos/com/jogamp/opengl/demos/graph/ui/FontView01.java
@@ -288,7 +288,7 @@ public class FontView01 {
static String getGlyphInfo(final char symbol, final Font.Glyph g) {
final OutlineShape os = g.getShape();
- final int osVertices = null != os ? os.getOutlineVectexCount() : 0;
+ final int osVertices = null != os ? os.getVertexCount() : 0;
final String ws = g.isWhiteSpace() ? ", ws" : "";
return String.format((Locale)null, "%s%nHeight: %1.3f%nLine Height: %1.3f%n%nSymbol: 0x%s, id 0x%s%s%nName: %s%nDim %1.3f x %1.3f%nAdvance %1.3f%nLS Bearings: %1.3f%nVertices: %d%n ",
g.getFont().getFullFamilyName(),
diff --git a/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java b/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java
index 20eaca236..1a1bd94dd 100644
--- a/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java
+++ b/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java
@@ -224,7 +224,7 @@ public final class OutlineShape implements Comparable<OutlineShape> {
}
/** Returns the total {@link Outline#getVertexCount() vertex number} of all {@link Outline}s. */
- public final int getOutlineVectexCount() {
+ public final int getVertexCount() {
int res = 0;
for(final Outline o : outlines) {
res += o.getVertexCount();
diff --git a/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java b/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java
index 7cf520bf3..ce490bdf0 100644
--- a/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java
+++ b/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java
@@ -214,7 +214,7 @@ class TypecastFont implements Font {
glyph_leftsidebearings = glyph.getLeftSideBearing();
final AABBox sb = glyph.getBBox();
final OutlineShape s = TypecastRenderer.buildShape(metrics.getUnitsPerEM(), glyph);
- if( 0 < s.getOutlineVectexCount() ) {
+ if( 0 < s.getVertexCount() ) {
glyph_bbox = sb;
shape = s;
isWhiteSpace = false;