开发者

Add text to image using php gd and google webfonts

Is is possible if I want adding text to image with font from google开发者_运维知识库 webfonts? using PHP image GD


You will need the font as a ttf / otf in order to do that. There is no other way unfortunatelly - or better said, anything else you would try would be way overcomplicated for the result, don't even think about it.

Later edit You said you can download the ttf files, so all you need is: http://php.net/manual/en/function.imagettftext.php


imagettftext does not works on WAMP server on windows. you have to download freetype and recompile. Sometimes, Wamp sucks.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜