diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a0ffdb..5a2a4f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [UNRELEASE] +### Fixed + +- Change default font for special letters ## [4.0.0] - 2025-03-06 diff --git a/inc/simplepdf.class.php b/inc/simplepdf.class.php index 6dabf60..0c11972 100644 --- a/inc/simplepdf.class.php +++ b/inc/simplepdf.class.php @@ -78,13 +78,9 @@ public function __construct($format = 'A4', $orient = '') $pdf->SetCreator('GLPI'); $pdf->SetAuthor('GLPI'); - $font = 'helvetica'; - //$subsetting = true; + $font = 'dejavusans'; $fonsize = 8; - if (isset($_SESSION['glpipdffont']) && $_SESSION['glpipdffont']) { - $font = $_SESSION['glpipdffont']; - //$subsetting = false; - } + $pdf->setHeaderFont([$font, 'B', 8]); $pdf->setFooterFont([$font, 'B', 8]);