Page 1 of 1

Problem with Italic

Posted: 2013-08-19T07:32:32-07:00
by Yakitsu
Hello,

I would like to know why when I use ImageMagick on my computer with this command :

exec("convert -background transparent -fill white -pointsize 16 label:'My test' -bordercolor '#00000070' -border 5x5 'test.png'");

I have my label written correcty in test.png. (without font and style)

But when I do the same in my website, the text "My test" is automatically in Italic ?!

Did I miss something on my command ?

Many thanks :)

Re: Problem with Italic

Posted: 2013-08-19T08:09:44-07:00
by snibgo
Your command is okay. You haven't specified a font, so IM has picked one for you, and perhaps this varies by platform. "convert -list font" lists available fonts.

Re: Problem with Italic

Posted: 2013-08-19T08:24:06-07:00
by Yakitsu
Super, by adding the font name, now it's ok !

Thanks you snibgo :)