int im_text( out, text, font, width, alignment, dpi )
IMAGE *out;
const char *text;
const char *font;
int width;
int alignment;
int dpi;
Fonts are specified pango-style as "family style size", for example "sans 12" or "times italic 14".
The width parameter, if greater than zero, gives the line width to wrap at.
alignment can be 0, 1 or 2 for right, centre and left alignment.
dpi is the resolution to render the text at. 300 is good for print, 100 for displays.