I'm currently using annotateImage
to add some text to an image.
/* Black text */
$draw->setFillColor('black');
/* Font properties */
$draw->setFont('Bookman-DemiItalic');
$draw->setFontSize( 30 );
$image->annotateImage($draw, 10, 45, 0, 'The fox jumped over the lazy dog');
This currently displays all the text in black. I'm looking for a way to change the color of the word fox to red
, but I'm out of ideas.
How can I achieve this?