aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2007-04-18 07:47:18 +0000
committerKenneth Russel <[email protected]>2007-04-18 07:47:18 +0000
commit4dd4f4933a4ab958f1eeb0c3403246ebdc954114 (patch)
tree551b8845f46bbe6e038042fe667d0502486f55ae /src
parent357d2cbcc498be65055d6b1ea8a6176ffb4c907c (diff)
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
Diffstat (limited to 'src')
-rwxr-xr-xsrc/classes/com/sun/opengl/util/j2d/TextRenderer.java12
1 files changed, 6 insertions, 6 deletions
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/*<String,Rect>*/ stringLocations = new HashMap/*<String,Rect>*/();
// 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/*<String>*/ tokenizationResults = new ArrayList/*<String>*/();
@@ -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();