Page 1 of 1

中文字体怎么加粗倾斜,现在只有英文可以

Posted: 2017-10-09T12:52:18+00:00
by 小白问道
用imagickDraw文字生成图片时,使用中文字体不能加粗倾斜,怎么实现中文字体加粗或倾斜这个功能呀?

Re: 中文字体怎么加粗倾斜,现在只有英文可以

Posted: 2017-10-10T02:27:22+00:00
by fmw42
You need to use a font file that has bold type face and is UTF-8 compliant. Alternately, try using -strokewidth to make the characters thicker.

You have not specified your IM version and platform nor what your command line is. Please always provide that.

Re: 中文字体怎么加粗倾斜,现在只有英文可以

Posted: 2017-10-10T06:04:30+00:00
by 小白问道
谢谢,中文字体加粗可以这样设置, 那怎么中文字体倾斜该怎么处理呀?

Re: 中文字体怎么加粗倾斜,现在只有英文可以

Posted: 2017-10-10T06:28:42+00:00
by fmw42

Re: 中文字体怎么加粗倾斜,现在只有英文可以

Posted: 2017-10-10T07:05:49+00:00
by 小白问道
Imagick::STYLE_ITALIC 这个不能对中文字体倾斜

Re: 中文字体怎么加粗倾斜,现在只有英文可以

Posted: 2017-10-10T07:18:40+00:00
by 小白问道
-i .... italic ................ italic slant angle in degrees; -45<=float<=45; default=0 这个命令好像不能对中文字体倾斜

Re: 中文字体怎么加粗倾斜,现在只有英文可以

Posted: 2017-10-10T16:14:03+00:00
by fmw42
You need to use a font file that has italic type face and is UTF-8 compliant. Alternately, you can use -annotate to slant text. See http://www.imagemagick.org/Usage/text/#annotate