DOMPDF - Class 'Font' not found

David Allen picture David Allen · Mar 6, 2014 · Viewed 11.2k times · Source

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

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

Hope you guys can help.

Answer

David Allen picture David Allen · Mar 6, 2014

I figured out what it was.

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