liballeg/allegro5 — pull request #7 by beoran (2014-08-09 13:12:45+00:00)
Title: Multi line text output for the font addon. Take 3.

Add al_draw_multiline_text, al_draw_multiline_textf, and
al_draw_multiline_ustr. Text will be broken into lines either on
a newline character '\n' (but not carriage return '\r'), to force
a line break, or on a space or tab if the text is wider than
the max_width parameter. The line height can be set as a parameter
or when set to 0, the font's line height is used as a default.
There are also al_do_multiline_ustr and al_do_multiline_text
for advanced text layout needs. There is an example program
ex_font_multiline.cpp to test out these functions with.