DOMPDF-未找到“字体”类 [英] DOMPDF - Class 'Font' not found

查看:152
本文介绍了DOMPDF-未找到“字体”类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过命令行添加字体。

I'm trying to add a font via Command line.

每次尝试出现以下错误。

Every time I try i get the following error.

Fatal error: Class 'Font' not found in 
/home/scripts/public_html/MarketingPalv2/load_font.php on line 139

当我尝试使用@ font-face

I also get a similar error when I try to use @font-face

Fatal error: Class 'Font' not found in 
/home/scripts/public_html/MarketingPalv2/include/font_metrics.cls.php on line 346

希望你们能提供帮助。

推荐答案

我知道是什么。

我下载了最新版本的php-font-lib,但是我需要较旧的版本。

I downloaded the newest version of php-font-lib but i needed a older version.

这篇关于DOMPDF-未找到“字体”类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆