[BUGFIX] Make line height configurable for Gifbuilder
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Imaging / GraphicalFunctions.php
index b2055a7..ad9487d 100644 (file)
@@ -740,6 +740,10 @@ class GraphicalFunctions
         }
         // 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;