Question

I'm trying to use imagemagick to generate some images of Kannada text. The problem is that complex characters are being rendered separately (not together as they should be... imagine that "ku" should be one character, but it is rendered first as "k-" and then as "-u")

Concretely, ಗ್ರಾಮ ಕೋಡ್ gets rendered as this:

Kannada_imagemagick_render

The command I am using is:

convert -background lightblue -fill blue -pointsize 48 -font '/Library/Fonts/Kannada Sangam MN.ttf' label:@Kannada_test.txt label_utf8.gif

On another program, TextEdit, the same font renders the text fine:Kannada_TextEdit_render

Any hints as to how I can get imagemagick to display these complex characters properly?

Was it helpful?

Solution

I’m afraid you can’t, because ImageMagick seems to be incapable of handling combining marks. That is, it cannot combine them with preceding characters to produce proper graphic presentation but render a spacing glyph for the mark.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top