summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/graph/font
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-02-27 09:43:25 +0100
committerSven Gothel <[email protected]>2014-02-27 09:43:25 +0100
commit073ac5ab63af792d8468d8bf074b982f7c44ef33 (patch)
treefb1fc78c8b4e5ba22936ef7d71a3fc993b8b8041 /src/jogl/classes/com/jogamp/graph/font
parent80a0ddd084e674fbfff007e6a83eec6162aaa32d (diff)
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.
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph/font')
-rw-r--r--src/jogl/classes/com/jogamp/graph/font/Font.java17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/font/Font.java b/src/jogl/classes/com/jogamp/graph/font/Font.java
index 1e0572037..afffe0654 100644
--- a/src/jogl/classes/com/jogamp/graph/font/Font.java
+++ b/src/jogl/classes/com/jogamp/graph/font/Font.java
@@ -27,11 +27,7 @@
*/
package com.jogamp.graph.font;
-import java.util.List;
-
import com.jogamp.graph.curve.OutlineShape;
-import com.jogamp.graph.geom.Vertex;
-import com.jogamp.graph.geom.Vertex.Factory;
import com.jogamp.opengl.math.geom.AABBox;
/**
@@ -88,6 +84,7 @@ public interface Font {
public Font getFont();
public char getSymbol();
public short getID();
+ public AABBox getBBox();
public float getScale(float pixelSize);
public AABBox getBBox(float pixelSize);
public float getAdvance(float pixelSize, boolean useFrationalMetrics);
@@ -117,17 +114,7 @@ public interface Font {
public boolean isPrintableChar( char c );
- /**
- * @deprecated Remove altogether - use {@link #getOutlineShape(Glyph, Factory)
- * @param shapes optional storage of OutlineShapes passed by user, new shapes are appended
- * @param string source of the created OutlineShapes
- * @param pixelSize
- * @param vertexFactory factory for vertices
- * @return List of OutlineShapes, one OutlineShape per character
- */
- public List<OutlineShape> getOutlineShapes(List<OutlineShape> shapes, CharSequence string, float pixelSize, Factory<? extends Vertex> vertexFactory);
-
/** Shall return {@link #getFullFamilyName()} */
@Override
public String toString();
-} \ No newline at end of file
+}