I use IM on Windows XP. I try to create national characters (é, è, à, ù, ç, ...) through the command line -annotate. I have tried all kind of syntax but I can't get no correct characters created. I read all documentation and tried all examples but none of them work properly. I tried with several other fonts but no changes.
Example:
convert test.png -font Lucida-Handwriting-Italique -pointsize 48 -fill "rgb(79,79,79)" -annotate +220+288 "Zéro heure" test1.png
The é character is replaced by a U character with accent, the € is replaced by a upper ç ... !
Any help ?
Problems in national characters
-
- Posts: 1015
- Joined: 2005-03-21T21:16:57-07:00
Re: Problems in national characters
I tried your convert command on my WinXP Pro system with IM 6.4.1.
I used the string "Zéro heure é, è, à, ù, ç" and it generates the correct characters in the output image.
I don't know why it would fail for you.
Pete
I used the string "Zéro heure é, è, à, ù, ç" and it generates the correct characters in the output image.
I don't know why it would fail for you.
Pete
Re: Problems in national characters
This works OK for me:
Version 6.4.0
Code: Select all
convert -size 500x400 xc:none -pointsize 48 -fill "rgb(79,79,79)" -annotate +220+288 "Zéro heure" test1.png
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Problems in national characters
I have updated the Unicode section of IM examples in response to this, and to show that if you can use such a character on the command line, then IM can work with them in this way.
http://imagemagick.org/Usage/text/#unicode
However you are still better to pipe in such UTF-8 binary data, as it is safer, and may avoid other problems caused by such binary data.
http://imagemagick.org/Usage/text/#unicode
However you are still better to pipe in such UTF-8 binary data, as it is safer, and may avoid other problems caused by such binary data.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/