From 1e1d70194822eabf41e05c8d890f93235cb0eff2 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Tue, 19 Feb 2008 08:12:42 +0000 Subject: Addendum to fix for Issue 344: Serious TextRenderer problems involving large fonts & unicode characters Fixed off-by-one error in computation of needsAdvance bit for high Unicode strings pointed out by spiraljetty on JOGL forum. Added test case for this. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1538 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') diff --git a/src/classes/com/sun/opengl/util/j2d/TextRenderer.java b/src/classes/com/sun/opengl/util/j2d/TextRenderer.java index 82c60b7d6..c8493affa 100755 --- a/src/classes/com/sun/opengl/util/j2d/TextRenderer.java +++ b/src/classes/com/sun/opengl/util/j2d/TextRenderer.java @@ -1584,7 +1584,7 @@ public class TextRenderer { } glyphsOutput.add(new Glyph(buf.toString(), // Any more glyphs after this run? - i < lengthInGlyphs - 1)); + i < lengthInGlyphs)); } } return glyphsOutput; -- cgit v1.2.3