Use two different fonts in imagemagick on one line

前端 未结 2 1156
长情又很酷
长情又很酷 2021-01-07 09:16

So i want to draw on my image text lets say in this example \"Trevor, 24\"

But I want to use the font Helvetica for Trevor, and for 24 i want to use the font Arial.

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-07 09:28

    You could look at using Pango with ImageMagick. I know it works at the command line but have never tried with the PHP binding...

    convert \
         pango:'Trevor24' \
         pango.png
    

提交回复
热议问题