Browse Source

Took out the unbaking of kerning because it _does_
affect all subsequent cursor positions unlike xOffset.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8474 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

PSp..om 14 years ago
parent
commit
1e59de25ee
1 changed files with 3 additions and 1 deletions
  1. 3 1
      engine/src/core/com/jme3/font/LetterQuad.java

+ 3 - 1
engine/src/core/com/jme3/font/LetterQuad.java

@@ -325,7 +325,9 @@ class LetterQuad {
                 
                 // Need to unbake the kerning from xAdvance since it
                 // is baked into x0... see above.
-                xAdvance -= kernAmount * incrScale; 
+                //xAdvance -= kernAmount * incrScale;
+                // No, kerning is an inter-character spacing and _does_ affect
+                // all subsequent cursor positions. 
             }
         }
         if (isEndOfLine()) {