diff --git a/src/Barryvdh/DomPDF/PDF.php b/src/Barryvdh/DomPDF/PDF.php index 54e06cf..3c3cddd 100644 --- a/src/Barryvdh/DomPDF/PDF.php +++ b/src/Barryvdh/DomPDF/PDF.php @@ -205,6 +205,8 @@ protected function define($name, $value){ protected function init(){ $this->dompdf = new \DOMPDF(); $this->dompdf->set_base_path(realpath(public_path())); + $canvas = \Canvas_Factory::get_instance($this->dompdf); + \Font_Metrics::init($canvas); } /**