Skip to content

Commit

Permalink
Handle fontdata same as fontDir handling
Browse files Browse the repository at this point in the history
to add ability to use the default fonts side by side with custom fonts.
  • Loading branch information
tamer-dev committed Feb 5, 2021
1 parent d2bc5fe commit 1d1944c
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 1d1944c

Please sign in to comment.