Back to the snippets index

Change font to Italic ( Anthony 14/6/2008 )

This code creates a light blue rectangle then writes italic text onto it.

IM code:

<?php
$cmd 
"-size 150x40 xc:lightblue -font verdana.ttf".
" -pointsize 25 -style italic -draw"
" \"gravity center fill black text 0,0 'Italic font'\"";
exec("convert $cmd output.png"); 
?> 

Image to go with Change font to Italic example code
Add a label
Change font to Italic
Fonts installed
Fonts Installed view
Label with image data
Multiple text on an image
Text made from an image on another image
Watermark text and shadow
Watermark tiled text