Skip to content

Commit

Permalink
[BUGFIX] Make line height configurable for Gifbuilder
Browse files Browse the repository at this point in the history
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 <no-reply@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
tmotyl authored and lolli42 committed Mar 17, 2018
1 parent 760f491 commit 277dbe8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php
Expand Up @@ -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;
Expand Down

0 comments on commit 277dbe8

Please sign in to comment.