diff options
author | Sven Gothel <[email protected]> | 2011-05-08 05:31:39 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-05-08 05:31:39 +0200 |
commit | eefa76604706bcaa55a1a324cb4eef78dd7a030c (patch) | |
tree | 7ed2e3cf5818ac9b6b4f1013027fd1325231f3bd /src/jogl/classes/com/jogamp/graph/font | |
parent | d60bc9c4bc4a6f99bafa8c723b3d7f3bacc80950 (diff) |
Graph/Font: use StringBuilder
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph/font')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/font/Font.java | 14 |
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 |