From eefa76604706bcaa55a1a324cb4eef78dd7a030c Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 8 May 2011 05:31:39 +0200 Subject: Graph/Font: use StringBuilder --- src/jogl/classes/com/jogamp/graph/font/Font.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes/com/jogamp/graph/font') 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. + *

{@link #getName(StringBuilder, int)} w/ {@link #NAME_FAMILY} and {@link #NAME_SUBFAMILY}

+ *

Example: "{@code Ubuntu-Regular}"

*/ + 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 -- cgit v1.2.3