Problem with Italic

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Yakitsu
Posts: 2
Joined: 2013-08-19T07:26:55-07:00
Authentication code: 6789

Problem with Italic

Post 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 :)
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Problem with Italic

Post 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.
snibgo's IM pages: im.snibgo.com
Yakitsu
Posts: 2
Joined: 2013-08-19T07:26:55-07:00
Authentication code: 6789

Re: Problem with Italic

Post by Yakitsu »

Super, by adding the font name, now it's ok !

Thanks you snibgo :)
Post Reply