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 @@ +