this page is valid XHTML 1.0 Here we demonstrate possibilities of drawing text using the PHP routines imageftbbox() and imagefttext().
text
draw:
use '+' for a space, use '%0a' for a linefeed
font
color red:
green: blue: use numbers between 0 and 255
size:
use a number
type:
Arial Lucida Sans Demi Bold
horizontal positioning
alignment:
left center right
padding:
px
vertical positioning
alignment:
top center bottom
padding:
px
line spacing:
use a number that is a percentage of the line height
demo text drawing
Theo van Eijndhoven iminc Jan. 2006