Page 1 of 1

Problem with -annotate and -stroke

Posted: 2007-09-20T11:42:14-07:00
by knedl2007
Hi folks,

here is my problem: I run IM version 6.3.5 on a Windows system. I am trying to get used to the syntax and everything worked fine so far, but now I wanted to do some text operations using the -annotate image operator. When I use the -stroke operator with this code:

Code: Select all

convert -background white -fill dodgerblue -font Arial -strokewidth 2 -stroke blue -undercolor lightblue -size 160x70 -gravity center label:Anthony label_color.gif
(which is exactly the same as the outline code example in http://www.imagemagick.org/Usage/text/#text_operators),

the result is as follows:
Image

Why does this happen?

In addition, when I use the -annotate operator multiple times in the same way it is used in the examples the resulting texts are not overlayed, but i.e. the second is positioned "over" the first one (or the other way round...)

Thanks for your help in advance,
knedl

Re: Problem with -annotate and -stroke

Posted: 2007-09-20T12:22:14-07:00
by knedl2007
hey, i have found the solution. I did not include the TrueType font in the working directory. With refering to arial.ttf now it works!