drnf593779 2011-02-05 10:00
浏览 95
已采纳

定义字体路径

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 some fonts in this path:

./fonts/

  • 写回答

1条回答 默认 最新

  • dqypcghd381390 2011-02-05 10:06
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)
  • ¥15 相敏解调 matlab
  • ¥15 求lingo代码和思路
  • ¥15 公交车和无人机协同运输
  • ¥15 stm32代码移植没反应
  • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效
  • ¥100 连续两帧图像高速减法