Page 1 of 1

font does not work properly

Posted: 2015-06-12T00:42:15-07:00
by koshimoto
I want to string the image by using the NotoSansCJKtc-Regular.otf(Google Noto Fonts(chinese)) font

but Image is not successfully created

What imagemagick can not use the NotoSansCJKtc-Regular.otfGoogle Noto Fonts(chinese) fonts?

command:
convert -size 197x80 xc:none -font NotoSansCJKtc-Regular.otf -gravity north -fill "#000000" -draw "font-size 48 text 0,0 '你好 '" test.png

Re: font does not work properly

Posted: 2015-06-12T04:57:06-07:00
by Bonzo
I do not know if .otf fonts are supported. ttf fonts are; is there one of those you can try?

Re: font does not work properly

Posted: 2015-06-12T08:38:52-07:00
by fmw42
Try creating it using -annotate. Put the text in a text file (say saved as fontfile.txt) that supports UTF-8. Then call the file as -annotate +0+0 @fontfile.txt or try that in your -draw command. See if either work. If not then your font file may not support UTF-8 characters notation. You can also try label:@fontfile.txt There are a number of ways to create a text image. See

http://www.imagemagick.org/Usage/text/
http://www.imagemagick.org/Usage/text/#unicode