请问怎样解决字体找不到路径问题Warning: imagettftext(): Could not find/open font in
<?php
$filename="des_big.jpg";
$fileInfo=getimagesize($filename);
$mime=$fileInfo['mime'];
$createFun=str_replace("/", "createfrom", $mime);
$outFun=str_replace("/",null,$mime);
$image=$createFun($filename);
$color=imagecolorallocatealpha($image, 255, 0, 0, 50);
$fontfile="../fonts/MSYH.TTF";
$text="muse.com";
imagettftext($image, 14, 0, 0, 14, $color, $fontfile, $text);
header("content-type:".$mime);
$outFun($image);
imagedestroy($image);
报错
Warning: imagettftext(): Could not find/open font in
我的路径写的应该没有问题,但是为什么打不开呢