开发者

define the font path

开发者 https://www.devze.com 2023-02-08 22:42 出处:网络
how can I define and use local fonts on the server? exec(Init::$static[\'path_imagemagick\'].\'convert -background none -fill \"#04202e\" -size x20 label:\"test\" gfx/gen/tmp.png\');

how can I define and use local fonts on the server?

exec(Init::$static['path_imagemagick'].'convert -background none -fill "#04202e" -size x20 label:"test" gfx/gen/tmp.png');

I have som开发者_JAVA百科e fonts in this path:

./fonts/


See the documentation on the -font parameter (emphasis mine):

-font name

set the font to use when annotating images with text, or creating labels. To print a complete list of fonts, use the -list font option (for versions prior to 6.3.6, use 'type' instead of 'font').

In addition to the fonts specified by the above pre-defined list, you can also specify a font from a specific source. For example Arial.ttf is a TrueType font file, ps:helvetica is PostScript font, and x:fixed is X11 font.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号