I'm using ImageMagick on few my websites and I just love the quality of IM and power, it's much higher than GD's quality.
But when I tried to insert text into images, I met one problem. I have this TTF font:
http://rapidshare.com/files/136740441/visitor1.ttf.html
Which has both English and Russian letters. Russian works fine with Photoshop and other software.
I'm trying to do this:
Code: Select all
<?PHP
error_reporting(E_ALL);
system ("/usr/local/bin/convert /home/ayva/c/a.png -font /home/ayva/c/visitor1.ttf -gravity \"Center\" -draw \"text 0,0 'А Вот И Полли'\" /home/ayva/c/textimage.png");
print "Картинка создана";
?>
But I get "? ??? ? ?????" instead of "А Вот И Полли".
I've tried to add -encoding Unicode to the line, but I get same result.
I wonder how can I fix this?