diff options
author | Sven Gothel <[email protected]> | 2011-05-06 15:57:16 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-05-06 15:57:16 +0200 |
commit | f5aaaf5cd65dedba658392cc30edb24b0dc3c026 (patch) | |
tree | 6b634c6ce5ffc5645a1e38abd65f610a67913290 /src/jogl/classes/com/jogamp | |
parent | eeb7c5fae3caf508fe5a6021ce700630632c6a02 (diff) |
Graph / Text: Use CharSequence as char/string interface to text rendering
Implements more of John Pritchard <[email protected]> proposal
https://github.com/syntelos/jogl/commit/eadee0758babcddaa5eeaffbe046e1b09f9f550e
Diffstat (limited to 'src/jogl/classes/com/jogamp')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/font/Font.java | 4 |
1 files changed, 2 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 1010d4f1a..a942c7a58 100644 --- a/src/jogl/classes/com/jogamp/graph/font/Font.java +++ b/src/jogl/classes/com/jogamp/graph/font/Font.java @@ -88,8 +88,8 @@ public interface Font { public Glyph getGlyph(char symbol); public int getNumGlyphs(); - public float getStringWidth(String string, float pixelSize); - public float getStringHeight(String string, float pixelSize); + public float getStringWidth(CharSequence string, float pixelSize); + public float getStringHeight(CharSequence string, float pixelSize); public AABBox getStringBounds(CharSequence string, float pixelSize); public boolean isPrintableChar( char c ); |