我需要使用来自linux上imagemagick的# This hook is called with the following parameters:
#
# $1 -- Name of the remote to which the push is being done
# $2 -- URL to which the push is being done
#
# If pushing without using a named remote those arguments will be equal.
#
# Information about the commits which are being pushed is supplied as lines to
# the standard input in the form:
#
# <local ref> <local sha1> <remote ref> <remote sha1>
#
# This sample shows how to prevent push of commits where the log message starts
# with "WIP" (work in progress).
remote="$1"
url="$2"
z40=0000000000000000000000000000000000000000
while read local_ref local_sha remote_ref remote_sha
do
来注释一些包含希腊字母的标签/文字。
什么是最好的选择?
琐碎的选择,例如:
convert
不起作用。 我不熟悉字体编码选项。
答案 0 :(得分:1)
在ImageMagick中使用的一种方法6.9.9.23 Mac OSX Sierra将使用希腊字体。 (符号字体也有效)
ii=1
label="a b $ii"
convert logo: -font GreekMathSymbols -pointsize 64 -gravity center -fill red -annotate +0+0 "$label" out.png
或者,使用兼容UTF-8的文本编辑器,并使用支持这些字符的字体键入文本。例如,我使用相同的GreekMathSymbols字体将您的alpha beta一个字符放入文本文件中。
然后
convert logo: -font GreekMathSymbols -pointsize 64 -gravity center -fill red -annotate +0+0 "@greek.txt" out2.png