Skip to content

Commit

Permalink
Update PdfDocument.php
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentmuller committed Feb 5, 2024
1 parent ba3a307 commit c57bcbe
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/PdfDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,7 @@ public function __construct(
PdfSize|array $size = PdfSize::A4
) {
// Font path
if (!\defined('FPDF_FONTPATH')) {
\define('FPDF_FONTPATH', __DIR__ . '/font/');
}
$this->fontPath = (string) FPDF_FONTPATH;
$this->fontPath = \defined('FPDF_FONTPATH') ? (string) FPDF_FONTPATH : __DIR__ . '/font/';

// Scale factor
$this->scaleFactor = $unit->getScaleFactor();
Expand Down

0 comments on commit c57bcbe

Please sign in to comment.