Problems in national characters

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
revacomp

Problems in national characters

Post by revacomp »

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 ?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Problems in national characters

Post by fmw42 »

el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: Problems in national characters

Post by el_supremo »

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
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Problems in national characters

Post by Bonzo »

This works OK for me:

Code: Select all

convert -size 500x400 xc:none -pointsize 48 -fill "rgb(79,79,79)" -annotate +220+288 "Zéro heure" test1.png
Version 6.4.0
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Problems in national characters

Post by anthony »

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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply