From: Joe Hunt Date: Sun, 23 Oct 2011 21:53:12 +0000 (+0200) Subject: Option to use iso-8859-13 (The Baltic Countries) in pdf reports. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=0c966389022915ffca6dcf26a58f89ee60f3babc;p=textcart.git Option to use iso-8859-13 (The Baltic Countries) in pdf reports. --- diff --git a/reporting/includes/class.pdf.inc b/reporting/includes/class.pdf.inc index 44b62b4..0b15e80 100644 --- a/reporting/includes/class.pdf.inc +++ b/reporting/includes/class.pdf.inc @@ -175,7 +175,14 @@ class Cpdf extends FPDI { default : $fontname = "freesans5"; break; } } - // else use built-in adobe fonts helvetica. + elseif ($this->encoding === "ISO-8859-13") + { + switch ($this->l['a_meta_language']) + { + default : $fontname = "freesans13"; break; + } + } + // else use built-in adobe fonts helvetica. } $this->SetFont($fontname, $style); }