aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-05-08 05:31:39 +0200
committerSven Gothel <[email protected]>2011-05-08 05:31:39 +0200
commiteefa76604706bcaa55a1a324cb4eef78dd7a030c (patch)
tree7ed2e3cf5818ac9b6b4f1013027fd1325231f3bd /src/jogl/classes/com
parentd60bc9c4bc4a6f99bafa8c723b3d7f3bacc80950 (diff)
Graph/Font: use StringBuilder
Diffstat (limited to 'src/jogl/classes/com')
-rw-r--r--src/jogl/classes/com/jogamp/graph/font/Font.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/font/Font.java b/src/jogl/classes/com/jogamp/graph/font/Font.java
index a942c7a58..6503f2779 100644
--- a/src/jogl/classes/com/jogamp/graph/font/Font.java
+++ b/src/jogl/classes/com/jogamp/graph/font/Font.java
@@ -82,7 +82,14 @@ public interface Font {
public String getName(int nameIndex);
- public StringBuffer getAllNames(StringBuffer buffer, String separator);
+ public StringBuilder getName(StringBuilder string, int nameIndex);
+
+ /** Shall return the family and subfamily name, separated a dash.
+ * <p>{@link #getName(StringBuilder, int)} w/ {@link #NAME_FAMILY} and {@link #NAME_SUBFAMILY}</p>
+ * <p>Example: "{@code Ubuntu-Regular}"</p> */
+ public StringBuilder getFullFamilyName(StringBuilder buffer);
+
+ public StringBuilder getAllNames(StringBuilder string, String separator);
public Metrics getMetrics();
public Glyph getGlyph(char symbol);
@@ -92,5 +99,8 @@ public interface Font {
public float getStringHeight(CharSequence string, float pixelSize);
public AABBox getStringBounds(CharSequence string, float pixelSize);
- public boolean isPrintableChar( char c );
+ public boolean isPrintableChar( char c );
+
+ /** Shall return {@link #getFullFamilyName()} */
+ public String toString();
} \ No newline at end of file