Hi,
I have a succesfful imagemagic/ghostscript/magickwand install, and all is well, but no matter what font i specify, I get arial!
code sample , outputs the image, annotated properly, but only ever in arial...
-----
$source = NewMagickWand();
$drawing = NewDrawingWand();
$pixel = NewPixelWand();
PixelSetColor($pixel,"#ff0000");
DrawSetFillColor($drawing,$pixel);
DrawSetFont ( $drawing , "Times" ) ;
DrawSetFontSize( $drawing,$fontsize);
DrawSetFontWeight($drawing,100);
MagickReadImage($source,'3.jpg');
MagickSetFormat($source, 'JPEG');
DrawAnnotation($drawing, $xLocation, $yLocation + $height , $string);
MagickDrawImage($source, $drawing);
MagickWriteImage($source,'output.jpg');
----------
doing "identify -list type" shows lots of available fonts... also doing a command line ImageMagick command to create text works fine, and uses the requested font... eg:
--------------------------------------
echo "This is a test" | convert -background yellow -font Courier-New +antialias -page 200x200 text:- mediocreimage.jpg
MagickWand, DrawSetFont does nothing, always Arial
Tried that, no difference.
Hi,
I tried using
set MAGICK_DEBUG annotate
and
export MAGICK_DEBUG=annotate
at the shell, then running my php file
neither made it output anything different...
Thanks for your reply
I tried using
set MAGICK_DEBUG annotate
and
export MAGICK_DEBUG=annotate
at the shell, then running my php file
neither made it output anything different...
Thanks for your reply