Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/a2424901/public_html/index.php on line 35

前端 未结 10 2042
被撕碎了的回忆
被撕碎了的回忆 2020-12-03 21:02


        
10条回答
  •  鱼传尺愫
    2020-12-03 21:31

    To add on to user2724960's answer; Changing the FontName to __DIR__ . '/graph/fonts/someFont.ttf' did it for me.

    Full line:

    $myPicture->setFontProperties(array("FontName"=>__DIR__ .  '/graph/fonts/someFont.ttf',"FontSize"=>14));
    

    Don't forgot to replace "someFont" with the name of your font file (default: "Forgotte")

提交回复
热议问题