Skip to content

Commit

Permalink
Merge pull request #43 from tamer-dev/master
Browse files Browse the repository at this point in the history
Handle fontdata same as fontDir handling
  • Loading branch information
mccarlosen authored Feb 5, 2021
2 parents d2bc5fe + 1d1944c commit d4528c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelMpdf/LaravelMpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit d4528c6

Please sign in to comment.