Suppose the char of "▣" is in somefont.ttf's glyph table.
char = unichr(9635)
subprocess.call(['convert', '-font', 'somefont.ttf', '-size', '50x50', '-label:%s' % char, 'output.png'])
subprocess.call(['convert', '-font', 'somefont.ttf', '-size', '50x50', ('-label:%s' % char).encode('utf-8'), 'output.png'])
Both create an blank image with no char of "▣" on it. Is above code correct? Or the problem is on ImageMagick side which doesn't capture label in certain ranges?
The reason for using ImageMagick to draw text is it's more flexible than PIL to fix and align text to certain image size.
EDIT:
According to yuku's suggestion, I tried the following methods:
root@host:~@convert -font somefont.ttf -size 50x65 label:▣ output.png
root@host:~@convert -font somefont.ttf -size 50x65 label:'▣' output.png
Both outputs a question mark but not the correct character.