Annotate

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
CosminU

Annotate

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Annotate

Post 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
CosminU

Re: Annotate

Post 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
Post Reply