#678·gm

Special characters on Windows 10

Author: jankomartinCreated Sep 6, 2017Updated Dec 11, 2024

Hello, I'm working on multiplatform application (windows, unix / mac) and need to process images (inprint text, resize, ...). I have tried to use the graphicmagick for this purpose but I'm getting weird results. Please can you advice ?

I'have installed on Windows: GraphicsMagick-1.3.26-Q16-win64-dll I'm using following command: gm convert -encoding "Unicode" -font "Calibri" -draw "text 100,100 '-лисица-'" orig.jpg _yyy.jpg

The output image contains "?????" instead of "лисица", the same command on Mac/Unix insert proper characters into image.

I have also tried to use ImageMagick with the same arguments and got correct results also on Windows, therefore I assume that there is no "Font" issue. magick convert -encoding "Unicode" -font "Calibri" -draw "text 100,100 '-лисица-'" orig.jpg _yyy.jpg

Please can you advice how to fix this issue? I would like to use GraphicMagick instead of ImageMagick due the performanca and resource issues.

Best regards