diff --git a/src/LaravelMpdf/LaravelMpdf.php b/src/LaravelMpdf/LaravelMpdf.php index 815409f..50f1c22 100644 --- a/src/LaravelMpdf/LaravelMpdf.php +++ b/src/LaravelMpdf/LaravelMpdf.php @@ -42,7 +42,7 @@ public function __construct($html = '', $config = []) 'fontDir' => array_merge($fontDirs, [ $this->getConfig('custom_font_dir') ]), - 'fontdata' => ($this->getConfig('custom_font_data')) ?: $fontData, + 'fontdata' => array_merge($fontData, $this->getConfig('custom_font_data')), 'default_font' => $this->getConfig('default_font'), 'autoScriptToLang' => $this->getConfig('auto_language_detection'), 'autoLangToFont' => $this->getConfig('auto_language_detection'),