1
I try to use ImageMagick to handle a Chinese character to a image on my MacBook.
According to ImageMagick's guide Unicode or UTF8 Format Text, I tried two ways.
Code one:
convert -background lightblue -fill blue \
-size 165X270 -pointsize 24 \
-gravity center -font Andale Mono \
label:'中' label.png
Code two:
I write the Chinese character in a text file, and add .utf8 to its file name.
convert -background lightblue -fill blue \
-size 165X270 -pointsize 24 \
-gravity center -font Andale Mono \
label:@chin.utf8 label.png
Both do not work. And the result is the same
Many Thanks In Advance , :-)
1You need to use a TTF file that contains Chinese characters in it - then it will work fine. "Andale Mono" is not the right choice. – Mark Setchell – 2017-12-12T15:59:37.557
Yes, I will try. i asked a question https://stackoverflow.com/questions/47775394/how-to-use-imagemagick-with-chinese-fonts-on-text-to-image-handling
– dengApro – 2017-12-12T16:10:36.217ps: I could not get your
@chin.utf8
command to work. – Matt Sephton – 2017-12-13T10:37:31.317I write the Chinese character in a text file, and add .utf8 to its file name. That is chin.utf8 file – dengApro – 2017-12-13T10:52:47.097