Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/244.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.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
如何在php中使用freetype库_Php_Heroku_Gd_Freetype - Fatal编程技术网

如何在php中使用freetype库

如何在php中使用freetype库,php,heroku,gd,freetype,Php,Heroku,Gd,Freetype,我是php新手,这是我有史以来第一个php应用程序 我的应用程序包括在运行时创建图像的功能,同时将文本添加到其中,因此它使用了函数imagefttext() 我的整个应用程序在我以前的服务器(godaddy)上运行良好,但最近我将我的应用程序转移到heroku存储库,现在我遇到了以下错误: 致命错误:调用未定义的函数imagefttext()… 对于谷歌搜索,我发现这个函数需要GD和freetype库,我在这里有GD支持,但freetype支持缺失 Heroku不支持自由类型库吗 有没有可能我

我是php新手,这是我有史以来第一个php应用程序

我的应用程序包括在运行时创建图像的功能,同时将文本添加到其中,因此它使用了函数
imagefttext()

我的整个应用程序在我以前的服务器(godaddy)上运行良好,但最近我将我的应用程序转移到heroku存储库,现在我遇到了以下错误:

致命错误:调用未定义的函数imagefttext()…

对于谷歌搜索,我发现这个函数需要GD和freetype库,我在这里有GD支持,但freetype支持缺失

  • Heroku不支持自由类型库吗
  • 有没有可能我可以在我的新电脑上使用freetype库 服务器heroku
  • 如果是,那怎么办?我需要在代码中包含一些引用吗
  • 如果这是不可能的,有没有一种方法可以解决添加 不使用freetype将文本转换为图像

是的,云平台即服务。您需要为服务器安装freetype或启用它的权限,请请求主机支持为您这样做。他们可能无法提供这种支持?有其他选择吗?@Maven Freetype库只能安装在服务器级别。他们必须为你做这件事,否则你将无法使用它。嗯,那么我有没有办法在不使用freetype的情况下向图像添加文本?p、 s.:
imagepstext
也不受支持。是的,云平台即服务。您需要为服务器安装freetype或启用freetype的权限,请请求主机支持为您执行此操作。他们可能无法提供此类支持?有其他选择吗?@Maven Freetype库只能安装在服务器级别。他们必须为你做这件事,否则你将无法使用它。嗯,那么我有没有办法在不使用freetype的情况下向图像添加文本?p、 s.:
imagepstext
也不受支持。