PMCORE-2099

This commit is contained in:
Julio Cesar Laura Avendaño
2020-08-31 22:55:44 +00:00
parent 161d61822a
commit 12dfd1035e
3 changed files with 17 additions and 9 deletions

View File

@@ -144,6 +144,15 @@ class Designer extends Controller
}
}
// Load additional fonts registered by TCPDF library
$tcPdfFonts = [];
OutputDocument::checkTcPdfFontsPath();
foreach (OutputDocument::loadTcPdfFontsList() as $font) {
$font['friendlyName'] = !empty($font['friendlyName']) ? $font['friendlyName'] : $font['familyName'];
$tcPdfFonts[] = "{$font['friendlyName']}={$font['familyName']}";
}
$this->setVar('tcPdfFonts', implode(';', $tcPdfFonts));
//plugin set source path
$sourceCss = array();
$sourceJs = array();