Page 1 of 1

Annotate

Posted: 2009-09-21T07:58:35-07:00
by CosminU
Greetings,

There seems to be a problem with the annotate function from v6.5.6 that was not present in v6.4.8. I'm using the C++ API.

I want to annotate with text and use a special character like the copyright sign (Alt + 0169). I use (for example) the text "Copyright © Me" as the input string and the text drawn on the resulting image will be truncated to "Copyright ". Somehow the special character is treated like the end of the string.

Is there a work-around for this?

Regards,
Cosmin

Re: Annotate

Posted: 2009-09-21T08:43:24-07:00
by magick
Convert your string to UTF-8. We use:
  • iconv --from-code=ISO-8859-1 --to-code=UTF-8 iso.txt > utf.txt
This works for us:
  • convert -pointsize 72 label:"Copyright © Me" copyright.png

Re: Annotate

Posted: 2009-09-22T02:22:22-07:00
by CosminU
I don't support Unicode in my code. However nothing changed just using instead of "©" the string "©" and it works just fine.

Thanks for the ideea!

Regards,
Cosmin