Page 1 of 1

convert, draw and bullet (unicode char)

Posted: 2009-05-07T07:34:52-07:00
by Marconato
Hi all,

I'm using the Image Magick tools with java language.

Using the option "draw" of the command "convert" i can't insert the bullet. In other words a java string made composed of a "bullet"+ string ("\u2022" + " some word") that i send for drawing, the bullet is not recognized.

Any advice on how i can make imageMagick recognize the bullet?

Thanks in advanced
Hi.

Re: convert, draw and bullet (unicode char)

Posted: 2009-05-07T10:12:57-07:00
by fmw42
don't know if this will help, but look at

http://www.imagemagick.org/Usage/text/#unicode
http://www.imagemagick.org/Usage/text/#draw

and this topic also
viewtopic.php?f=1&t=13646


Does it work in command line mode?


Perhaps you should show us your IM code?

Re: convert, draw and bullet (unicode char)

Posted: 2009-05-08T03:22:53-07:00
by Marconato
Hi,

J use the Java Process Builder as to call external command convert.

This is the command: convert, -size, 552x352, xc:skyblue, -draw, "image Over 0,0 552,352 'image1.jpg'"", -font, Arial, -fill, #ffffff, -pointsize, 40, -draw, text 235,77 'titolo', -font, Arial, -fill, #ffffff, -pointsize, 26, -draw, text 5,167 '•body', -quality, 100, result.jpg

As for java, the bullet is inserted using "String bullet = "\u2022".

But instead of writing in the final image this text "•body", convert write this "?body".

Any idea .......
Thanks in advanced

Diego
Venice (Italy)

Re: convert, draw and bullet (unicode char)

Posted: 2009-05-08T20:06:01-07:00
by anthony
Marconato wrote:But instead of writing in the final image this text "•body", convert write this "?body".
It means the font IM used does not contain the bullet symbol. It probably did not have any unicode characters in it at all! You will need to use a better font. Try Mincho which is the Windows Unicode Font.