From 736234d241968f9f3ed176b657d438f7c7dafe38 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Wed, 17 Oct 2007 18:06:40 +0000 Subject: 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 --- src/classes/com/sun/opengl/util/j2d/TextRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/classes/com') 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 (); } -- cgit v1.2.3