Rewrote font_render_wrapped to make it handle newlines and other whitespaces