aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/graph/curve/text
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-03-25 08:51:24 +0100
committerSven Gothel <[email protected]>2011-03-25 08:51:24 +0100
commit56de85032f687748d99af63f90b6798d14b9c04b (patch)
tree0d58653b2a55b32c88bc465ee9b334b71b9e5332 /src/com/jogamp/graph/curve/text
parentc87998372f09466dd682f208fcddebae954c7af8 (diff)
Make com.jogamp.graph.geom.plane non public: jogamp.graph.geom.plane, this incl. creating the non public FontInt interface for Path2D access
Diffstat (limited to 'src/com/jogamp/graph/curve/text')
-rw-r--r--src/com/jogamp/graph/curve/text/HwTextRenderer.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/jogamp/graph/curve/text/HwTextRenderer.java b/src/com/jogamp/graph/curve/text/HwTextRenderer.java
index 5813225e4..61d8309c7 100644
--- a/src/com/jogamp/graph/curve/text/HwTextRenderer.java
+++ b/src/com/jogamp/graph/curve/text/HwTextRenderer.java
@@ -39,14 +39,15 @@ import javax.media.opengl.GLUniformData;
import javax.media.opengl.fixedfunc.GLMatrixFunc;
import jogamp.graph.curve.text.GlyphString;
+import jogamp.graph.font.FontInt;
import jogamp.graph.font.typecast.TypecastFontFactory;
+import jogamp.graph.geom.plane.AffineTransform;
+import jogamp.graph.geom.plane.Path2D;
import com.jogamp.common.util.ReflectionUtil;
import com.jogamp.graph.curve.Region;
import com.jogamp.graph.font.Font;
import com.jogamp.graph.font.FontFactory;
-import com.jogamp.graph.geom.plane.AffineTransform;
-import com.jogamp.graph.geom.plane.Path2D;
import com.jogamp.graph.geom.Point;
import com.jogamp.graph.geom.PointTex;
import com.jogamp.graph.geom.opengl.Vertex;
@@ -299,7 +300,7 @@ public class HwTextRenderer {
AffineTransform affineTransform = new AffineTransform(pointFactory);
Path2D[] paths = new Path2D[str.length()];
- font.getOutline(str, affineTransform, paths);
+ ((FontInt)font).getOutline(str, affineTransform, paths);
GlyphString glyphString = new GlyphString(pointFactory, font.getName(), str);
glyphString.createfromFontPath(paths, affineTransform);