Issue Bug Rejected

#22675Gifbuilder: .spacing breaks linebreaking

Renzo Lauper 05/18/10, 10:24 updated 03/06/22, 00:04

Description

Adding .spacing to a Gifbuilder text object breaks the linebreaking. If I remove the “10.spacing = 1” line from the code below, the text breaks nicely but as soon as it is added, no line breaking happens anymore. The same happens without .breakWidth and .breakSpace when the linebreak is added in the header text itself.
It seems the code used for adding the spacing between letters doesn’t include any page breaking logic.

TypoScript example:

temp.header1 = IMAGE
temp.header1.file = GIFBUILDER
temp.header1.file {
XY = [10.w]+3,[10.h]+10
backColor = #ffffff
transparentBackground = 1

10 = TEXT
10.text.data = field:header
10.fontColor = #000000
10.fontSize = 33
10.fontFile = fileadmin/template/American.ttf
10.spacing = 1
10.breakWidth = 360
10.breakSpace = 1.2
10.offset = 0,25
10.niceText = 0
10.antiAlias = 1
}

(issue imported from #M14419)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.