[TYPO3-core] RFC Feature #10666: Integrate automatic line breaks in GIFBUILDER

Niels Pardon mail at niels-pardon.de
Thu Apr 9 10:47:02 CEST 2009


Hey Olly!

Just tested the patch and I have a question. As soon as I render the
text with breakSpace and breakWidth I get a blank line above the text.
Is this intentional? (See attached image.)

Greets,

Niels

Oliver Hader schrieb:
> This is an SVN patch request.
> 
> Type: Feature
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=10666
> 
> Branch: Trunk
> 
> Problem:
> GIFBUILDER lacks of the possibility to define a maximum rendering width
> for a given longer text. The text is just rendered in one single line
> but there is not automatic line break.
> 
> Solution:
> Add the possibility to define a maximum width ("breakWidth") and a
> spacing ("breakSpace") after that the text breaks by defined characters
> (such as spaces, dots, colons, commas, etc.) and the definition of a
> spacing between each line.
> The "breakSpace" property works as faktor the line height is multiplied
> with. Therefore, the calculations in GIFBUILDER have to support floats.
> 
> Notes:
> There's a TypoScript test case attached that demonstrates this feature.
> There are two commented/disabled lines in the patch that will be removed
> before committing.
> 
> Documentation changes:
> TSref: GIFBUILDER, NOTE (+calc):
> Add to first paragraph:
> The property "lineHeight" (e.g. "[10.lineHeight]") uses the the height a
> single line of text would take.
> 
> TSref: GIFBUILDER, [tsref:->GIFBUILDER.(GBObj).TEXT]:
> Add new properties after "text":
> 1) Property: breakWidth
>    Data type: integer
>    Description: Defines the maximum width for an object, overlapping
>    elements will force an automatic line break.
> 
> 2) Property: breakSpace
>    Data type: float
>    Description: Defines a value that is multiplied by the line height of
>    the current element.
>    Default: 1.0
> 
> 
> olly
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: space_above_broken_text.gif
Type: image/gif
Size: 971 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090409/752f0824/attachment.gif 


More information about the TYPO3-team-core mailing list