You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Text text1 = new Text(2, 100, myFont, "ThisIsTextWithoutWhiteSpaces", this.getVertexBufferObjectManager());
text1.setText("This has white spaces");
myScene.attachChild(text1);
Text text2 = new Text(2, 200, myFont, "This has white spaces", this.getVertexBufferObjectManager());
myScene.attachChild(text2);
I think this issue may not be 100% fixed. I am having the same problem where old letters are being displayed on top or after a text (TickerText in my case) after it has been set to a new string. This occurs when the string is smaller or even larger than the previous string, with random letters appearing in the same space as the new letter.
I have checked that there is nothing wrong with the actual string by outputting it to the log.
Also, the problem is possibly occuring more often when the tick speed is higher (i.e. 60 instead of 15). I have some screen shots but photobucket is not working for me right now...
Edit- here are some screen shots: http://i1062.photobucket.com/albums/t500/bhecox65/Starscape/textbug1.png http://i1062.photobucket.com/albums/t500/bhecox65/Starscape/textbug2.png http://i1062.photobucket.com/albums/t500/bhecox65/Starscape/textbug3.png
Reported by @sjvc :
This is the code:
This screenshot shows "weird result": http://i39.tinypic.com/9lehj4.png
This screenshot shows expected result after remove "if(!letter.isWhitespace())": http://i41.tinypic.com/xdxx5v.png
I don't know the correct way to solve it
The text was updated successfully, but these errors were encountered: