[TYPO3-core] RFC Feature #10666: Integrate automatic line breaks in GIFBUILDER
Oliver Hader
oliver at typo3.org
Thu Mar 19 17:55:39 CET 2009
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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0010666_test.txt
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090319/ff7973d4/attachment.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0010666_v2.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090319/ff7973d4/attachment-0001.txt
More information about the TYPO3-team-core
mailing list