diff options
author | Sven Gothel <[email protected]> | 2012-05-15 17:48:15 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-05-15 17:48:15 +0200 |
commit | ab2eb9b73f7643fa579810abc5d2c422525b1362 (patch) | |
tree | 1b4cc013bed3f5a9b9c9c0d11fdb1588faf4f12b /src/jogl/classes/com | |
parent | 1d58578ebc794f339a0a1a5e7fbc0fcbb704762c (diff) |
graph/font: Add "public float getAdvanceWidth(int i, float pixelSize);"
Font::getAdvancedWidth(..) allows applications to query a glyphs width
with a given pixel size, as it is being used for rendering.
Diffstat (limited to 'src/jogl/classes/com')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/font/Font.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/font/Font.java b/src/jogl/classes/com/jogamp/graph/font/Font.java index c60d0cc2a..e2b3fe5d7 100644 --- a/src/jogl/classes/com/jogamp/graph/font/Font.java +++ b/src/jogl/classes/com/jogamp/graph/font/Font.java @@ -97,6 +97,7 @@ public interface Font { public StringBuilder getAllNames(StringBuilder string, String separator); + public float getAdvanceWidth(int i, float pixelSize); public Metrics getMetrics(); public Glyph getGlyph(char symbol); public int getNumGlyphs(); |