I have a similar problem and i have been looking a solution for 2 days.With the new version, the accepted answer does not work any more. @jay-bienvenu answer is correct. The new version of DomPDF does not include everything and also there is a very poor documentation. So you will have to:. download loadfont.php and place it to the root directory of your project: curl -o loadfont.php. then open loadfont.php with your editor and place the correct path to your autoload.inc.php, eg requireonce 'lib/dompdf/autoload.inc.php';.
How to Install & Use Photoshop Brushes By Lesley Yarbrough Lesley Yarbrough on May 31, 2016 in How To Tweet This Share This Last week we walked you through the steps of how to install & use your new Photoshop actions.
![Install Install](http://lh4.ggpht.com/_f--g3whFLbk/St5ist3fLDI/AAAAAAAAAaE/RRRgKWuVoTo/w1200-h630-p-k-no-nu/output_preview1-thumb.jpg)
Open the command line, go to the root folder of your project, and run the utility with the name of the font you are registering and the path to the TFF file eg php loadfont.php SourceSansPro./pathToYourFolder/lib/dompdf/SourceSansPro-Regular.ttf./pathToYourFolder/lib/dompdf/SourceSansPro-Bold.ttf Now the font is installed. You may use it as you would normally would as a webfont in html. Dompdf's says the font utility is included but doesn't tell you how to get it and run it. Here's how:. Download to the root directory of your project.
Curl -o loadfont.php. Open loadfont.php with a text editor (e.g. Change requireonce 'autoload.inc.php'; to requireonce 'vendor/autoload.php';. Run the utility with the name of the font you are registering and the path to the TFF file.
For example: php loadfont.php 'Brush Script MT' https/fonts/brush-script-mt.ttf Read the code for for more information about how to use this command.