我正在尝试运行:
php load_font.php montserrat ./Montserrat-Bold.otf
(按照此处所述:Custom Fonts for DOMPDF)
但是会导致以下错误:
Warning: require_once(/Applications/MAMP/htdocs/project/wp-content/themes/project/vendor/dompdf/dompdf/lib/php-font-lib/classes/Font.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/project/wp-content/themes/project/vendor/dompdf/dompdf/dompdf_config.inc.php on line 332
Fatal error: require_once(): Failed opening required '/Applications/MAMP/htdocs/project/wp-content/themes/project/vendor/dompdf/dompdf/lib/php-font-lib/classes/Font.php' (include_path='.:/Applications/MAMP/bin/php/php5.5.14/lib/php') in /Applications/MAMP/htdocs/project/wp-content/themes/project/vendor/dompdf/dompdf/dompdf_config.inc.php on line 332
为什么?