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.
convert, draw and bullet (unicode char)
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: convert, draw and bullet (unicode char)
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?
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)
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)
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)
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: convert, draw and bullet (unicode char)
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.Marconato wrote:But instead of writing in the final image this text "•body", convert write this "?body".
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/