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

Oliver Hader oliver at typo3.org
Tue Mar 31 10:46:54 CEST 2009


REMINDER #1

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
-- 
Oliver Hader
TYPO3 Release Manager 4.3


More information about the TYPO3-team-core mailing list