Feature #20164

Integrate automatic line breaks in GIFBUILDER

Added by Oliver Hader over 10 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2009-03-11
Due date:
% Done:

0%

PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

Description

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.

The feature request is about the possibility to define a maximum width and a spacing after that the text breaks by defined characters (such as spaces, dots, colons, commas, etc.) and the definition of a spacing between each line.

New configuration properties:
- Subobject "TEXT" has new properties "breakWidth" and "breakSpace"
+ breakWidth (integer) defines the maximum width for an object
overlapping elements will force a line break
+ breakSpace (float) defines a value that is multiplied by the
line height of the current element
Example:
10 = TEXT
10 {
text = Boy, this is a fucking long text that hopefully breaks somehow
fontSize = 13 # define a maximum of 300px in width:
breakWidth = 300 # define a space 1.0*lineHeight on top of each new line
breakSpace = 1.0
}

(issue imported from #M10666)

0010666_test.txt View (539 Bytes) Administrator Admin, 2009-03-12 14:55

0010666.patch View (12.8 KB) Administrator Admin, 2009-03-12 15:03

0010666_v2.patch View (9.32 KB) Administrator Admin, 2009-03-19 17:31

0010666_v3.patch View (9.31 KB) Administrator Admin, 2009-05-03 00:52


Related issues

Related to TYPO3 Core - Feature #20199: Refactor tslib_gifBuilder::calcOffset() Closed 2009-03-17
Related to TYPO3 Core - Feature #20207: Integrate possibility to determine maximum of multiple values in GIFBUILDER Closed 2009-03-19
Related to TYPO3 Core - Bug #22471: Automatic line breaks in GIFBUILDER occur after characters like ' % ... Closed 2010-04-15
Related to TYPO3 Core - Bug #22399: Gifbuilder using breakWidth/breakSpace: lineHeight depends on rendered text Closed 2010-04-08

History

#1 Updated by Oliver Hader over 10 years ago

Added a new overworked patch since some changes got integrated in other RFCs in between.

#2 Updated by Oliver Hader over 10 years ago

Committed to SVN Trunk (rev. 5385)

#3 Updated by Tymoteusz Motylewski over 1 year ago

  • Related to Bug #22399: Gifbuilder using breakWidth/breakSpace: lineHeight depends on rendered text added

Also available in: Atom PDF