From 4dd4f4933a4ab958f1eeb0c3403246ebdc954114 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Wed, 18 Apr 2007 07:47:18 +0000 Subject: Reverted TextRenderer back to not tokenizing strings as that wasn't producing identical rendering results git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1200 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/classes/com/sun/opengl/util/j2d/TextRenderer.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/classes') diff --git a/src/classes/com/sun/opengl/util/j2d/TextRenderer.java b/src/classes/com/sun/opengl/util/j2d/TextRenderer.java index ca4617abb..d5207b9f2 100755 --- a/src/classes/com/sun/opengl/util/j2d/TextRenderer.java +++ b/src/classes/com/sun/opengl/util/j2d/TextRenderer.java @@ -125,11 +125,11 @@ public class TextRenderer { private Map/**/ stringLocations = new HashMap/**/(); // Support tokenization of space-separated words - // NOTE: not exposing this at the present time as we aren't - // producing identical (or even vaguely similar) rendering results; - // may ultimately yield more efficient use of the backing store, but - // also seems to have performance issues due to rendering more quads - private boolean splitAtSpaces = !Debug.isPropertyDefined("jogl.TextRenderer.nosplit"); + // NOTE: not using this at the present time as we aren't producing + // identical rendering results; may ultimately yield more efficient + // use of the backing store + // private boolean splitAtSpaces = !Debug.isPropertyDefined("jogl.TextRenderer.nosplit"); + private boolean splitAtSpaces = false; private int spaceWidth = -1; private List/**/ tokenizationResults = new ArrayList/**/(); @@ -575,7 +575,7 @@ public class TextRenderer { @return the width of the space character in the TextRenderer's font */ - public int getSpaceWidth() { + private int getSpaceWidth() { if (spaceWidth < 0) { Graphics2D g = getGraphics2D(); FontRenderContext frc = getFontRenderContext(); -- cgit v1.2.3