PMCORE-2128

This commit is contained in:
Julio Cesar Laura Avendaño
2020-09-12 00:08:05 +00:00
parent 93086ecd0d
commit 45de45bee6
149 changed files with 702 additions and 8 deletions

View File

@@ -1544,11 +1544,15 @@ function documents_list_registered_fonts()
// Display information
CLI::logging(PHP_EOL);
foreach ($fonts as $fileName => $font) {
$inTinyMce = $font['inTinyMce'] ? 'Yes' : 'No';
CLI::logging("TTF Filename: {$fileName}" . PHP_EOL);
CLI::logging("TCPDF Filename: {$font['tcPdfFileName']}" . PHP_EOL);
CLI::logging("Display in TinyMCE: {$inTinyMce}" . PHP_EOL . PHP_EOL . PHP_EOL);
if (!empty($fonts)) {
foreach ($fonts as $fileName => $font) {
$inTinyMce = $font['inTinyMce'] ? 'Yes' : 'No';
CLI::logging("TTF Filename: {$fileName}" . PHP_EOL);
CLI::logging("TCPDF Filename: {$font['tcPdfFileName']}" . PHP_EOL);
CLI::logging("Display in TinyMCE: {$inTinyMce}" . PHP_EOL . PHP_EOL . PHP_EOL);
}
} else {
CLI::logging('It has not been added fonts yet.' . PHP_EOL . PHP_EOL);
}
}

View File

@@ -1242,8 +1242,11 @@ class OutputDocument extends BaseOutputDocument
// Create the missing folder(s)
$filesystem->makeDirectory(K_PATH_FONTS, 0755, true, true);
// Copy files related to the fonts
// Copy files related to the fonts from vendors
$filesystem->copyDirectory(PATH_TRUNK . 'vendor' . PATH_SEP . 'tecnickcom' . PATH_SEP . 'tcpdf' . PATH_SEP . 'fonts' . PATH_SEP, K_PATH_FONTS);
// Copy files related to the fonts from core
$filesystem->copyDirectory(PATH_CORE . 'content' . PATH_SEP . 'tcPdfFonts' . PATH_SEP, K_PATH_FONTS);
}
}

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More