From 9a4b221f7750733f548091d9a37bc98df7c2a409 Mon Sep 17 00:00:00 2001 From: Narindra ezway Date: Fri, 4 Apr 2025 16:22:35 +0300 Subject: [PATCH] set font to Comic Sans and size 7 for all price value in pdf --- .../Service/InvoiceGroupPdfHandler/InvoiceFunecapPdfHandler.php | 2 ++ .../Service/InvoiceGroupPdfHandler/InvoiceGroupPdfHandler.php | 2 ++ gestion/lib/Service/InvoicePdfHandler.php | 2 ++ 3 files changed, 6 insertions(+) diff --git a/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceFunecapPdfHandler.php b/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceFunecapPdfHandler.php index d395892..a5ba597 100644 --- a/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceFunecapPdfHandler.php +++ b/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceFunecapPdfHandler.php @@ -90,6 +90,8 @@ class InvoiceFunecapPdfHandler extends InvoiceGroupPdfHandler { $this->Cell($maxDescriptionWidth, 6, $productDescription); } + $this->SetFont('ComicSans', '', 7); + $this->SetXY( 135,$yValue ); $this->Cell(20, 6, number_format($valueHt,2,'.','').chr(128), 0, 0, 'C'); diff --git a/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceGroupPdfHandler.php b/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceGroupPdfHandler.php index 778b99b..685c3d1 100644 --- a/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceGroupPdfHandler.php +++ b/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceGroupPdfHandler.php @@ -294,6 +294,8 @@ class InvoiceGroupPdfHandler extends FPDF { $this->Cell($maxDescriptionWidth, 6, $productDescription); } + $this->SetFont('ComicSans', '', 7); + $this->SetXY( 135,$yValue ); $this->Cell(20, 6, number_format($valueHt,2,'.','').chr(128), 0, 0, 'C'); diff --git a/gestion/lib/Service/InvoicePdfHandler.php b/gestion/lib/Service/InvoicePdfHandler.php index 4e3629f..d7d7a4b 100644 --- a/gestion/lib/Service/InvoicePdfHandler.php +++ b/gestion/lib/Service/InvoicePdfHandler.php @@ -297,6 +297,8 @@ class InvoicePdfHandler extends FPDF $this->SetXY(29, $yValue); $this->MultiAlignCell(102, 6, utf8_decode(html_entity_decode($productDescription)), 0, '0',); + $this->SetFont('ComicSans', '', 7); + $this->SetXY(135, $yValue); $this->Cell(20, 6, number_format($valueHt, 2, '.', '') . chr(128), 0, 0, 'C');