Skip to content

Commit 0ffb2d1

Browse files
authored
Merge pull request #20 from RomainLvr/fix/font-for-greek
Fix - Change default font for special letters
2 parents c2813d4 + 22b86f4 commit 0ffb2d1

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

CHANGELOG.md

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

88
## [UNRELEASE]
99

10+
### Fixed
11+
12+
- Change default font for special letters
1013

1114
## [4.0.0] - 2025-03-06
1215

inc/simplepdf.class.php

+2-6
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,9 @@ public function __construct($format = 'A4', $orient = '')
7878

7979
$pdf->SetCreator('GLPI');
8080
$pdf->SetAuthor('GLPI');
81-
$font = 'helvetica';
82-
//$subsetting = true;
81+
$font = 'dejavusans';
8382
$fonsize = 8;
84-
if (isset($_SESSION['glpipdffont']) && $_SESSION['glpipdffont']) {
85-
$font = $_SESSION['glpipdffont'];
86-
//$subsetting = false;
87-
}
83+
8884
$pdf->setHeaderFont([$font, 'B', 8]);
8985
$pdf->setFooterFont([$font, 'B', 8]);
9086

0 commit comments

Comments
 (0)