incorrect results with label for unicode (Telugu) text

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
mohancloudworld
Posts: 1
Joined: 2014-12-27T07:07:09-07:00
Authentication code: 6789

incorrect results with label for unicode (Telugu) text

Post by mohancloudworld »

I am converting unicode (Telugu) text to image using option "label". I am using the only font available for Telugu on my system but I am getting wrong result. I am using the same font in my libreoffice and it works fine there. Here is my comand:

Code: Select all

printf '\u0C15\u0C48' | convert -font Lohit-Telugu -pointsize 100 label:@- wrongOutput.png
But I get the correct result if I use option "pango".

Code: Select all

printf '<span font="100"> \u0C15\u0C48 </span>' | convert pango:@- correctOutput.png
My setup:
OS: Fedora 21
ImageMagick: 6.8.8-10
Terminal : Gnome

Since "label", "annotate" supports more options compared to "pango", can anyone suggest how this task can be achieved with "label" ?

-Mohan G
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: incorrect results with label for unicode (Telugu) text

Post by fmw42 »

see http://www.imagemagick.org/Usage/text/#unicode and try the ways described there
Post Reply