From 277dbe8d46569299f002da2ccf2d94a4c7fcdf40 Mon Sep 17 00:00:00 2001 From: Tymoteusz Motylewski Date: Sat, 17 Mar 2018 17:49:56 +0100 Subject: [PATCH] [BUGFIX] Make line height configurable for Gifbuilder If `lineHeight` is set then its value would be taken as line height instead of line height calculated from given text. Resolves: #22399 Releases: master, 8.7 Change-Id: Ibc38559a6c7fc616c2b25b419a3bc6feddf87a61 Reviewed-on: https://review.typo3.org/56327 Tested-by: TYPO3com Reviewed-by: Stefan Neufeind Reviewed-by: Anja Leichsenring Tested-by: Anja Leichsenring Reviewed-by: Christian Kuhn Tested-by: Christian Kuhn --- typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php b/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php index b2055a741220..ad9487d88d59 100644 --- a/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php +++ b/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php @@ -740,6 +740,10 @@ public function calcBBox($conf) } // Set original lineHeight (used by line breaks): $theBBoxInfo['lineHeight'] = $y; + if (!empty($conf['lineHeight'])) { + $theBBoxInfo['lineHeight'] = (int)$conf['lineHeight']; + } + // If any kind of spacing applys, we use this function: if ($spacing || $wordSpacing) { $x = 0;