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
font does not work properly
Re: font does not work properly
I do not know if .otf fonts are supported. ttf fonts are; is there one of those you can try?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: font does not work properly
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
http://www.imagemagick.org/Usage/text/
http://www.imagemagick.org/Usage/text/#unicode