I’ve got a lot of audio measurement data I’d like to write to a simple log.txt file from my program. I’d also like to display this text in the UI.
I’m using the stream manipulators
stringstream objects to align the values and make it look nice.
The log file looks as how I’d expect, as well as outputting the string in the debugger:
However, when I try to draw it in my UI using
AttributedString::draw(), the text doesn’t align:
Is there something I’m missing here? I’ve been digging around the API for a bit now.
Also, if anybody knows a better way to format text in this manner that would certainly put a cold compress on this mess of tedious text aligning.