[-] PDF : #PSCFV-2795 : Add font : freeserif and fix bug in tcpdf.php

This commit is contained in:
lLefevre
2012-06-26 13:01:18 +00:00
parent dce1d84e26
commit 7362dcebc1
5 changed files with 19 additions and 1 deletions
+2
View File
@@ -95,6 +95,8 @@ class PDFGeneratorCore extends TCPDF
public function setFontForLang($iso_lang)
{
$this->font = PDFGenerator::DEFAULT_FONT;
$this->setHeaderFont(array(PDFGenerator::DEFAULT_FONT, '', PDF_FONT_SIZE_MAIN));
$this->setFooterFont(array(PDFGenerator::DEFAULT_FONT, '', PDF_FONT_SIZE_MAIN));
if (array_key_exists($iso_lang, $this->font_by_lang))
$this->font = $this->font_by_lang[$iso_lang];