From 073ac5ab63af792d8468d8bf074b982f7c44ef33 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 27 Feb 2014 09:43:25 +0100 Subject: Bug 801: Graph TextRenderer Cleanup Part-2: Remove Path2D from Glyph/Typecast* ; Misc Cleanup Commit c3621221b9a563495b4f54fe60e18e8db8cc57fb introduced create an OutlineShape per Glyph from it's data w/o going through Path2D. Misc Cleanup: Remove unused code/fields, use private/final where possible. --- .../jogamp/graph/curve/opengl/TextRenderUtil.java | 37 ---------------------- 1 file changed, 37 deletions(-) (limited to 'src/jogl/classes/com/jogamp/graph/curve') diff --git a/src/jogl/classes/com/jogamp/graph/curve/opengl/TextRenderUtil.java b/src/jogl/classes/com/jogamp/graph/curve/opengl/TextRenderUtil.java index 6ac3d926f..b54fcd6a6 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/opengl/TextRenderUtil.java +++ b/src/jogl/classes/com/jogamp/graph/curve/opengl/TextRenderUtil.java @@ -144,43 +144,6 @@ public class TextRenderUtil { return region; } - private static GLRegion createRegion2(final int renderModes, final Factory vertexFactory, - final Font font, final CharSequence str, final int pixelSize) { - final List shapesIn = font.getOutlineShapes(null, str, pixelSize, vertexFactory); - final ArrayList shapesOut = new ArrayList(); - final int numGlyps = shapesIn.size(); - for (int index=0;index gtris = shape.getTriangles(OutlineShape.VerticesState.QUADRATIC_NURBS); - region.addTriangles(gtris, null, 0); - - final ArrayList gVertices = shape.getVertices(); - for(int j=0; j