Warning:imagettfbbox(): Could not read font in /mnt/hgfs/web/test/clicaptcha.class.php on line15 通过查看文章得知,需要使用的字体类型是TrueType fonts 原本默认的是使用的SourceHanSansCN-Normal.otf字体,如下图,通过file命令查看得知是属于OpenType类型,虽然在windows下是可以的,但是在CentOS下却出现了,兼容...
运行laravel项目,发现二维码生成有问题; 打开二维码图片路径,报无法读取字体文件错误:imagettfbbox(): Could not read font 调试输出,找到字体文件目录,发现字体文件占空间大小为0B; 重新下载字体放到目录下,问题解决
GD Support enabled GD Version bundled (2.1.0 compatible) GIF Read Support enabled GIF Create Support enabled PNG Support enabled libPNG Version 1.6.20 WBMP Support enabled XBM Support enabled Hope that is enough to be going on. If you need anything else, please let me know. Not a GD tech...
When using versions of the GD library lower than 2.0.18, a space character, rather than a semicolon, was used as the 'path separator' for different font files. Unintentional use of this feature will result in the warning message: Warning: Could not find/open font. For these affected versi...