From 941a2f5a3ba7e5e0183e88ac63036cdb6aebf248 Mon Sep 17 00:00:00 2001 From: Imants Horsts Date: Mon, 26 Aug 2024 17:40:07 +0300 Subject: [PATCH] Fix font differences setting --- src/Cpdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cpdf.php b/src/Cpdf.php index daf710d..eaa28dd 100644 --- a/src/Cpdf.php +++ b/src/Cpdf.php @@ -2232,7 +2232,7 @@ public function selectFont($fontName, $encoding = '', $set = 1, $subsetFont = fa // also set the differences here, note that this means that these will take effect only the // first time that a font is selected, else they are ignored if (isset($options['differences'])) { - $font['differences'] = $options['differences']; + $this->fonts[$fontName]['differences'] = $options['differences']; } } }