noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 06/08: PDF.is_fill : fix bug


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 06/08: PDF.is_fill : fix bug
Date: Sat, 14 Sep 2019 17:47:20 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit b6e5d1fe3a9e2801ad2a97b72ee99bf4a46d92f6
Author: Dany De Bontridder <address@hidden>
Date:   Sat Sep 14 23:15:53 2019 +0200

    PDF.is_fill : fix bug
---
 include/lib/pdf_core.class.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/lib/pdf_core.class.php b/include/lib/pdf_core.class.php
index abfbb92..f85fcd2 100644
--- a/include/lib/pdf_core.class.php
+++ b/include/lib/pdf_core.class.php
@@ -62,11 +62,13 @@ class PDF_Core extends TFPDF
 
         parent::__construct($orientation, $unit, $format);
         $this->AddFont('DejaVu','','DejaVuSans.ttf',true);
+        $this->AddFont('DejaVu','I','DejaVuSans-Oblique.ttf',true);
         $this->AddFont('DejaVu','B','DejaVuSans-Bold.ttf',true);
         $this->AddFont('DejaVu','BI','DejaVuSans-BoldOblique.ttf',true);
         $this->AddFont('DejaVuCond','','DejaVuSansCondensed.ttf',true);
         $this->AddFont('DejaVuCond','B','DejaVuSansCondensed-Bold.ttf',true);
         
$this->AddFont('DejaVuCond','I','DejaVuSansCondensed-Oblique.ttf',true);
+        
$this->AddFont('DejaVuCond','BI','DejaVuSansCondensed-BoldOblique.ttf',true);
 
         
 
@@ -263,10 +265,10 @@ class PDF_Core extends TFPDF
     function is_fill($p_step)
     {
         if ($p_step % 2 == 0) {
-            $pdf->SetFillColor(220, 221, 255);
+            $this->SetFillColor(220, 221, 255);
             $fill = 1;
         } else {
-            $pdf->SetFillColor(0, 0, 0);
+            $this->SetFillColor(255, 255, 255);
             $fill = 0;
         }
         return $p_step;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]