Skip to content

Commit ddc2001

Browse files
authored
Merge pull request #22 from RomainLvr/fix/revert-glpipdffont-commit
Revert commit that change default font for special letters
2 parents 01d2010 + bd18fc1 commit ddc2001

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CHANGELOG.md

-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
## [4.0.1] - 2025-03-10
1111

12-
### Fixed
13-
14-
- Change default font for special letters
15-
1612
### Added
1713

1814
- Checking the compatibility of the Branding plugin

inc/simplepdf.class.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,11 @@ public function __construct($format = 'A4', $orient = '')
7878

7979
$pdf->SetCreator('GLPI');
8080
$pdf->SetAuthor('GLPI');
81-
$font = 'dejavusans';
81+
$font = 'helvetica';
8282
$fonsize = 8;
83+
if (isset($_SESSION['glpipdffont']) && $_SESSION['glpipdffont']) {
84+
$font = $_SESSION['glpipdffont'];
85+
}
8386

8487
$pdf->setHeaderFont([$font, 'B', 8]);
8588
$pdf->setFooterFont([$font, 'B', 8]);

0 commit comments

Comments
 (0)