diff options
author | Kenneth Russel <[email protected]> | 2007-10-17 18:06:40 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2007-10-17 18:06:40 +0000 |
commit | 736234d241968f9f3ed176b657d438f7c7dafe38 (patch) | |
tree | 8e5c26c8be6908f2ac409212ee5cdc0b92324b22 /src | |
parent | 3a342b8bad808a44172c5b4cca9774b707a2d94f (diff) |
Fixed Issue 324: Rendering artifacts with glyph-based TextRenderer
Changed from using getVisualBounds() to the more accurate
getPixelBounds() when computing bounding box for individual glyphs.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1406 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src')
-rwxr-xr-x | src/classes/com/sun/opengl/util/j2d/TextRenderer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/classes/com/sun/opengl/util/j2d/TextRenderer.java b/src/classes/com/sun/opengl/util/j2d/TextRenderer.java index 697d5068a..0aa554a1c 100755 --- a/src/classes/com/sun/opengl/util/j2d/TextRenderer.java +++ b/src/classes/com/sun/opengl/util/j2d/TextRenderer.java @@ -1364,7 +1364,7 @@ public class TextRenderer GlyphVector gv = font.createGlyphVector(fontRenderContext, singleUnicode); // need this to get single bitmaps glyphID = gv.getGlyphCode ( 0); - glyphsToUpload.prepGlyphForUpload ( unicodeID, gv.getGlyphCode ( 0), gv.getVisualBounds (), i, gv ); + glyphsToUpload.prepGlyphForUpload ( unicodeID, gv.getGlyphCode ( 0), gv.getPixelBounds (fontRenderContext, 0, 0), i, gv ); advances[glyphID] = metrics.getAdvance (); } |