@cuinjune wrote:
Hi, I just found out I can't draw a tab character '\t' using ofTrueTypeFont::drawString().
The new line character '\n' works fine but '\t' doesn't work.
Here's my test code. I tried this with OF v0.9.8 on Mac OS X.
//-------------------------------------------------------------- void ofApp::setup(){ font.load("font.ttf", 30); str = "Hello\tWorld"; //string to draw cout << str << endl; } //-------------------------------------------------------------- void ofApp::update(){ } //-------------------------------------------------------------- void ofApp::draw(){ font.drawString(str, 100, 100); }And Here's a screenshot when you run the code.
As you can see, if you print the string to console, there's a tab space between "Hello" and "World" but you can't see the space in the text drawn on the OF window.
Is this a bug? If so, I would appreciate any suggestion on how to fix this.
Thank you in advance.
Posts: 1
Participants: 1
