ofDrawBitmapString from right to left

Hello all.

Is it possible to draw text from right to left inverting the function of ofDrawBitmapString(str,x,y); ?

Thanks

Hi. try this:

ofBitmapFont bf;
ofRectangle bb = bf.getBoundingBox(str, 0, 0);
ofDrawBitmapString(str, x - bb.width, y);
3 Likes

Thanks! :slight_smile: