Skip to content
Snippets Groups Projects
Commit 3fb04227 authored by JediKev's avatar JediKev
Browse files

issue: mPDF SetAutoFont RTL

This addresses an issue where `SetAutoFont()` was making the Thai PDFs
break. This adds the `AUTOFONT_RTL` flag to only autodetect RTL languages
and nothing else.
parent 84943083
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ class Ticket2PDF extends mPDFWithLocalImages ...@@ -86,7 +86,7 @@ class Ticket2PDF extends mPDFWithLocalImages
return; return;
$html = ob_get_clean(); $html = ob_get_clean();
$this->SetAutoFont(); $this->SetAutoFont(AUTOFONT_RTL);
$this->WriteHtml($html, 0, true, true); $this->WriteHtml($html, 0, true, true);
} }
} }
...@@ -116,7 +116,7 @@ class Task2PDF extends mPDFWithLocalImages { ...@@ -116,7 +116,7 @@ class Task2PDF extends mPDFWithLocalImages {
ob_start(); ob_start();
include STAFFINC_DIR.'templates/task-print.tmpl.php'; include STAFFINC_DIR.'templates/task-print.tmpl.php';
$html = ob_get_clean(); $html = ob_get_clean();
$this->SetAutoFont(); $this->SetAutoFont(AUTOFONT_RTL);
$this->WriteHtml($html, 0, true, true); $this->WriteHtml($html, 0, true, true);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment