Skip to content

Commit

Permalink
Apply PHP 74 compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRLangley committed Jan 11, 2024
1 parent bc11206 commit 8fd3521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -2542,7 +2542,7 @@ private function openFont($font)
$width = floatval($dtmp['WX']);

if ($c >= 0) {
if ($c != hexdec($n)) {
if (ctype_xdigit($c) && ctype_xdigit($n)) {
$data['codeToName'][$c] = $n;
}
$data['C'][$c] = $width;
Expand Down

0 comments on commit 8fd3521

Please sign in to comment.