I've uploaded a new version using a rewritten text/images/button code here
This is for testing purposes only, so don't use this on your main installation. The new text code allows for word wrapping and better alignment options, and I would appreciate it if people could test it out and report any glitches.
Stuff like glow, shadow, blur haven't been implemented yet.
here is some sample code:
// always start with a font
$font(tahoma,8,bold,0-0-0)
$drawrect(0,0,0,0,brushcolor-255-255-255)
// set the bounding box for the following text to 10,10,110,110
// by default, align the text to the left, and in the middle, vertically.
$alignabs(10,10,150,100,left,top)
$drawrect(10,10,150,100,brushcolor-null)
// lines which are too long will be truncated and ellipses added
// use $align(right), $align(left), or $align(center) to align text within a line.
// the default alignment on a line will be what is specified in the $alignabs
// (in this case, left)
A long line of text| $alignr(right)small line$char(10)
$alignr(right)small line $alignr(left)A long line of text$char(10)$char(10)
$wordwrap()another line of text, but with word wrapping.
// same as above, but with different $alignabs alignment
$alignabs(170,10,150,100,right,middle)
$drawrect(170,10,150,100,brushcolor-null)
A long line of text| $alignr(left)small line$char(10)
$alignr(right)small line $alignr(left)A long line of text$char(10)$char(10)
$wordwrap()another line of text, but with word wrapping.
// you can also align text vertically within a line
$alignabs(10,120,150,100,center,middle)
$drawrect(10,120,150,100,brushcolor-null)
// align text along the baseline
$font(,8,bold,0-0-0)abc$font(,16,bold,0-0-0)abc$font(,8,bold,0-0-0)abc$char(10)
// align text at the top
$alignr(top)$font(,8,bold,0-0-0)abc$font(,16,bold,0-0-0)abc$font(,8,bold,0-0-0)abc$char(10)
// align text in the middle
$alignr(middle)$font(,8,bold,0-0-0)abc$font(,16,bold,0-0-0)abc$font(,8,bold,0-0-0)abc$char(10)
$alignabs(170,120,150,100,left,top)
$drawrect(170,120,150,100,brushcolor-null)
1 $_tab(40)loremipsum$char(10)
100 $_tab(40)loremipsum$char(10)
1000000 $_tab(40)loremipsum$char(10)
15 $_tab(40)loremipsum$char(10)
$alignabs(10,230,310,100,left,top)
$drawrect(10,230,310,100,brushcolor-null)
testing$char(10)
$addcharspace(5)testing wiiilllwww$char(10)$addcharspace(0)
$fixedwidth(15)testing wiiilllwww$char(10)
$fixedwidth(15)WiiiiiiW