中文字体怎么加粗倾斜,现在只有英文可以
中文字体怎么加粗倾斜,现在只有英文可以
用imagickDraw文字生成图片时,使用中文字体不能加粗倾斜,怎么实现中文字体加粗或倾斜这个功能呀?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: 中文字体怎么加粗倾斜,现在只有英文可以
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.
You have not specified your IM version and platform nor what your command line is. Please always provide that.
Re: 中文字体怎么加粗倾斜,现在只有英文可以
谢谢,中文字体加粗可以这样设置, 那怎么中文字体倾斜该怎么处理呀?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: 中文字体怎么加粗倾斜,现在只有英文可以
I do not know what you mean by tilt? Do you mean perspective? See http://www.fmwconcepts.com/imagemagick/ ... /index.php and http://www.imagemagick.org/Usage/distorts/#perspective
Re: 中文字体怎么加粗倾斜,现在只有英文可以
Imagick::STYLE_ITALIC 这个不能对中文字体倾斜
Re: 中文字体怎么加粗倾斜,现在只有英文可以
-i .... italic ................ italic slant angle in degrees; -45<=float<=45; default=0 这个命令好像不能对中文字体倾斜
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: 中文字体怎么加粗倾斜,现在只有英文可以
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