rezaali / ofxUI

[DEPRECATED] UI Addon for openFrameworks
http://www.syedrezaali.com/#/ofxui-project-showcase/
518 stars 202 forks source link

Spacing problem in ofxUITextInput #210

Closed c-liu closed 10 years ago

c-liu commented 10 years ago

When using ofxUITextInput, if I input a space, it doesn't show up until the next nonspace character is entered.

For example, if I input "The ", it shows up as "The|", where | is the blinking cursor. The cursor doesn't show that there's a space. I have to type in another character before any spaces show up. So if I type in a bunch of spaces then a character, the cursor makes a huge jump when the next character is entered.

Lots of spaces have been entered here, cursor is still behind the last word image After entering in a new character, the spaces show up image

Additionally, there is another related spacing issue where the cursor cannot go to the end of the string if the first entered character is a space. Ex: I enter " D" and it shows " |D". I cannot use the arrow keys to move the cursor behind the D, it is stuck in front of it.

image

c-liu commented 10 years ago

I looked into this further, it wound up being an issue with ofTrueTypeFont, that's fixed in the github, but not in 0.8.3