aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/graph/curve/text/GlyphShape.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes/jogamp/graph/curve/text/GlyphShape.java')
-rw-r--r--src/jogl/classes/jogamp/graph/curve/text/GlyphShape.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/jogl/classes/jogamp/graph/curve/text/GlyphShape.java b/src/jogl/classes/jogamp/graph/curve/text/GlyphShape.java
index 749292297..b6f37a610 100644
--- a/src/jogl/classes/jogamp/graph/curve/text/GlyphShape.java
+++ b/src/jogl/classes/jogamp/graph/curve/text/GlyphShape.java
@@ -72,16 +72,14 @@ public class GlyphShape {
public final Vertex.Factory<? extends Vertex> vertexFactory() { return shape.vertexFactory(); }
- private void addVertexToLastOutline(Vertex vertex){
+ private void addVertexToLastOutline(Vertex vertex) {
shape.addVertex(vertex);
}
private void addOutlineVerticesFromGlyphVector(float[] coords, int segmentType){
switch(segmentType) {
case PathIterator.SEG_MOVETO:
- if(!shape.getLastOutline().isEmpty()){
- shape.addEmptyOutline();
- }
+ shape.addEmptyOutline();
addVertexToLastOutline(vertexFactory().create(coords, 0, 2, true));
numVertices++;
break;
@@ -108,6 +106,10 @@ public class GlyphShape {
}
}
+ public OutlineShape getShape() {
+ return shape;
+ }
+
public int getNumVertices() {
return numVertices;
}