[-] PDF : #PSCFV-2795 : Add font : freeserif and fix bug in tcpdf.php
This commit is contained in:
@@ -95,6 +95,8 @@ class PDFGeneratorCore extends TCPDF
|
|||||||
public function setFontForLang($iso_lang)
|
public function setFontForLang($iso_lang)
|
||||||
{
|
{
|
||||||
$this->font = PDFGenerator::DEFAULT_FONT;
|
$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))
|
if (array_key_exists($iso_lang, $this->font_by_lang))
|
||||||
$this->font = $this->font_by_lang[$iso_lang];
|
$this->font = $this->font_by_lang[$iso_lang];
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -9409,7 +9409,8 @@ class TCPDF {
|
|||||||
$nextk = -1;
|
$nextk = -1;
|
||||||
$prevint = false;
|
$prevint = false;
|
||||||
foreach ($range as $k => $ws) {
|
foreach ($range as $k => $ws) {
|
||||||
if (($k == $nextk) AND (!$prevint) AND ((!isset($ws['interval'])) OR (count($ws) < 4))) {
|
$cws = count($ws);
|
||||||
|
if (($k == $nextk) AND (!$prevint) AND ((!isset($ws['interval'])) OR ($cws < 4))) {
|
||||||
if (isset($range[$k]['interval'])) {
|
if (isset($range[$k]['interval'])) {
|
||||||
unset($range[$k]['interval']);
|
unset($range[$k]['interval']);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user