Commit 277dbe8d authored by Tymoteusz Motylewski's avatar Tymoteusz Motylewski Committed by Christian Kuhn
Browse files

[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: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 760f491b
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment