Rendering unicode characters
Posted: 2010-07-26T12:58:46-07:00
Hi, I'm using ImageMagick so create a character map for rendering strings in OpenGL.
ImageMagick is producing the expected result for most of the characters I want but I do get a '?' rendered when I use an uncommon unicode character.
To generate the font table I loop through this command replacing the letter A with the input variable.
The character I'm having trouble with is '⋅' (Dot operator) UNICODE 22 C5 : UTF8 E2 88 85.
Now, this is no big issue for me. I can easily handle a few manual steps to get the character I want. I'm just asking if there is a nicer way to handle this.
Any help/suggestions would be highly appreciated, thanks.
ImageMagick is producing the expected result for most of the characters I want but I do get a '?' rendered when I use an uncommon unicode character.
To generate the font table I loop through this command replacing the letter A with the input variable.
Code: Select all
convert -background none -fill white -pointsize 100 label:A output.png
Now, this is no big issue for me. I can easily handle a few manual steps to get the character I want. I'm just asking if there is a nicer way to handle this.
Any help/suggestions would be highly appreciated, thanks.