Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache PHP中的imagettfbbox()_Php_Linux_Apache_Gd_Apache Config - Fatal编程技术网

Apache PHP中的imagettfbbox()

Apache PHP中的imagettfbbox(),php,linux,apache,gd,apache-config,Php,Linux,Apache,Gd,Apache Config,我有一个基于php Web的应用程序,它使用imagettfbbox()函数。此应用程序已托管在IIS上,但正在移动到Apache服务器。imagettfbbox()函数有一个fontfile参数。在IIS上,我已将“C:\Windows\Fonts\Verdana.ttf”用于此参数。我不知道在Apache服务器上使用什么路径。我尝试过各种字体目录,但似乎都不起作用。在Apache上,我通常应该使用什么URL进行此操作?您应该能够像这样引用字体文件 /usr/fonts/fontfile.tt

我有一个基于php Web的应用程序,它使用imagettfbbox()函数。此应用程序已托管在IIS上,但正在移动到Apache服务器。imagettfbbox()函数有一个fontfile参数。在IIS上,我已将“C:\Windows\Fonts\Verdana.ttf”用于此参数。我不知道在Apache服务器上使用什么路径。我尝试过各种字体目录,但似乎都不起作用。在Apache上,我通常应该使用什么URL进行此操作?

您应该能够像这样引用字体文件

/usr/fonts/fontfile.ttf


问题在于知道指向哪个目录。您给出的示例在我的服务器上不存在。我发现了各种包含.ttf文件的目录,但它们似乎都不满足imagettfbbox()函数。