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

Tested-by: default avatarTYPO3com <>
Reviewed-by: default avatarStefan Neufeind <>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
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