optimized multiline text rendering for mem. allocs