Text Wrapping / Alignment

Hi, I’ve been looking everywhere and cannot find any working method to align or wrap TTF text to a specified width, or set the alignment in it’s bounding rectangle.

It’d be great if anyone could point me in the right direction.


I’ve used ofxTextSuite ( https://github.com/lukemalcolm/ofxTextSuite/ ) for just this reason in the past and it’s worked well. I had to do some modding of the class to get the text nice and crisp but other than that it seems to work well.

I know that bakercp is doing loads of work on ofxFont ( https://github.com/bakercp/ofxFont ) so that might be a viable option as well although I haven’t tried it.