ofxTextSuite icon indicating copy to clipboard operation
ofxTextSuite copied to clipboard

It won't always draw text from an array

Open AnastasiaDunbar opened this issue 10 years ago • 0 comments

Displaying "klLLLLLLLLLL".

In void ofApp::draw() :

if (your_array.size() > 0) {
    string str = your_array[int(floorf(fmodf(seconds*3.f, float(your_array.size()))))]; 
    draw_text(0, 60, "str = " + str);
    your_font2.setText(str); //It seems it doesn't draw uppercase letters.
    your_font2.setColor(255, 255, 255, 255);
    your_font2.drawCenter(float(ofGetWindowWidth()) / 2.f, float(ofGetWindowHeight()) / 2.f); 
}

AnastasiaDunbar avatar Jan 18 '16 01:01 AnastasiaDunbar