diff options
author | sgiehl <stefan@piwik.org> | 2015-05-15 02:39:47 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2015-05-16 02:58:36 +0300 |
commit | a4ea6b8c65ea6d008a328000b27acba54033472a (patch) | |
tree | f598dcfa6417cf43b59e33408d95838bdcf6b03c /core/ReportRenderer/Pdf.php | |
parent | ff6f59ac955bfb7b7fe507208d461b2051dbb687 (diff) |
use correct fonts for special languages
Diffstat (limited to 'core/ReportRenderer/Pdf.php')
-rw-r--r-- | core/ReportRenderer/Pdf.php | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/core/ReportRenderer/Pdf.php b/core/ReportRenderer/Pdf.php index bc82cd85ce..4f0ee97bdc 100644 --- a/core/ReportRenderer/Pdf.php +++ b/core/ReportRenderer/Pdf.php @@ -19,8 +19,6 @@ use Piwik\TCPDF; * @see libs/tcpdf */ require_once PIWIK_INCLUDE_PATH . '/plugins/ScheduledReports/config/tcpdf_config.php'; -require_once PIWIK_INCLUDE_PATH . '/libs/tcpdf/config/lang/eng.php'; -require_once PIWIK_INCLUDE_PATH . '/core/TCPDF.php'; /** * @@ -93,6 +91,11 @@ class Pdf extends ReportRenderer public function setLocale($locale) { switch ($locale) { + case 'bn': + case 'hi': + $reportFont = 'freesans'; + break; + case 'zh-tw': $reportFont = 'msungstdlight'; break; @@ -110,9 +113,17 @@ class Pdf extends ReportRenderer break; case 'ar': - $reportFont = 'almohanad'; + $reportFont = 'aealarabiya'; + break; + + case 'am': + case 'ta': + case 'th': + $reportFont = 'freeserif'; break; + case 'te': + // not working with bundled fonts case 'en': default: $reportFont = ReportRenderer::DEFAULT_REPORT_FONT_FAMILY; |