dot*_*hen 2 linux imagemagick command-line-interface
我看到较新版本imagemagick 支持从右到左的脚本,例如 Hebrew 和 Arab。精美的手册提到了direction标志,但没有提供法律论据的例子。显而易见的猜测,例如rtl,reverse和right-to-left不被接受。direction国旗的法律依据是什么?
$ echo "????, ????" | convert -background white -fill black -font Arial -direction reverse -pointsize 20 label:@- hello.png
convert.im6: unrecognized direction type `reverse' @ error/convert.c/ConvertImageCommand/1227.
$ convert --version
Version: ImageMagick 6.7.7-10 2012-08-17 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
Run Code Online (Sandbox Code Playgroud)
对于带有 ImageMagic 的阿拉伯语文本,可以使用“caption:”和“label:”,以及“-direction right-to-left”。但是,这会为独立字符选择字形,而不是连接字符。
最简单的解决方案似乎是“pango:”,其中不需要“-direction right-to-left”。
convert -gravity Center -size 200x200 -fill black -font Arial -pointsize 50 pango:"????" 阿拉伯文_r5.png
或者
convert -gravity Center -size 200x200 -fill black -font Arial -pointsize 50 pango:@utftext.txt arabic_r5.png
来源:http : //multipole.org/discourse-server/viewtopic.php?f=1&t=26611