diff options
Diffstat (limited to 'src/jogl/classes/jogamp')
3 files changed, 6 insertions, 4 deletions
diff --git a/src/jogl/classes/jogamp/graph/font/FontInt.java b/src/jogl/classes/jogamp/graph/font/FontInt.java index 4d9390da2..f915d57f0 100644 --- a/src/jogl/classes/jogamp/graph/font/FontInt.java +++ b/src/jogl/classes/jogamp/graph/font/FontInt.java @@ -30,6 +30,7 @@ package jogamp.graph.font; import jogamp.graph.geom.plane.AffineTransform; import jogamp.graph.geom.plane.Path2D; +import com.jogamp.graph.curve.OutlineShape; import com.jogamp.graph.font.Font; public interface FontInt extends Font { @@ -45,6 +46,7 @@ public interface FontInt extends Font { public Path2D getPath(float pixelSize); } - public void getOutline(String string, float pixelSize, + public void getPaths(String string, float pixelSize, AffineTransform transform, Path2D[] result); + //TODO: Rami - ADD getOutlines without path2D } diff --git a/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java b/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java index 6292c8826..dae5b3333 100644 --- a/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java +++ b/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java @@ -199,8 +199,8 @@ class TypecastFont implements FontInt { return result; } - public void getOutline(String string, float pixelSize, AffineTransform transform, Path2D[] result) { - TypecastRenderer.getOutline(this, string, pixelSize, transform, result); + public void getPaths(String string, float pixelSize, AffineTransform transform, Path2D[] result) { + TypecastRenderer.getPaths(this, string, pixelSize, transform, result); } public float getStringWidth(String string, float pixelSize) { diff --git a/src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java b/src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java index ab5e673db..c8861d744 100644 --- a/src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java +++ b/src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java @@ -40,7 +40,7 @@ import com.jogamp.graph.font.Font; */ public class TypecastRenderer { - public static void getOutline(TypecastFont font, + public static void getPaths(TypecastFont font, String string, float pixelSize, AffineTransform transform, Path2D[] p) { if (string == null) { |