From 161d61822a6fb807a3229fa72dd841fcb802335e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20Cesar=20Laura=20Avenda=C3=B1o?= Date: Mon, 31 Aug 2020 19:29:26 +0000 Subject: [PATCH] PMCORE-2115 --- .../engine/classes/model/OutputDocument.php | 2 +- workflow/public_html/.htaccess | 2 +- workflow/public_html/fonts/font.php | 25 +++++++++++++++++++ workflow/public_html/fonts/styles.php | 24 ++++++++++++++++++ 4 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 workflow/public_html/fonts/font.php create mode 100644 workflow/public_html/fonts/styles.php diff --git a/workflow/engine/classes/model/OutputDocument.php b/workflow/engine/classes/model/OutputDocument.php index c94b0a3ba..868128ee6 100644 --- a/workflow/engine/classes/model/OutputDocument.php +++ b/workflow/engine/classes/model/OutputDocument.php @@ -1291,7 +1291,7 @@ class OutputDocument extends BaseOutputDocument private static function generateCssFile() { // Initialize variables - $template = "@font-face {font-family: @familyName;src: url(@fileName) format('truetype');@properties}\n"; + $template = "@font-face {font-family: @familyName;src: url(/fonts/font.php?file=@fileName) format('truetype');@properties}\n"; $css = ''; // Load the custom fonts list diff --git a/workflow/public_html/.htaccess b/workflow/public_html/.htaccess index 2b59a627c..55063eec0 100644 --- a/workflow/public_html/.htaccess +++ b/workflow/public_html/.htaccess @@ -3,7 +3,7 @@ Deny from all - + Order Allow,Deny Allow from All diff --git a/workflow/public_html/fonts/font.php b/workflow/public_html/fonts/font.php new file mode 100644 index 000000000..f943e2b20 --- /dev/null +++ b/workflow/public_html/fonts/font.php @@ -0,0 +1,25 @@ +