yeah, if you are writing to multicolored texture this would be tricky (I always had solid color BG), maybe a shader could help. Yes the simplest but most work is to place newline characters where wrapping should occur - agree if there is some pre-written code that would help.