Project

General

Profile

Actions

Feature #20164

closed

Integrate automatic line breaks in GIFBUILDER

Added by Oliver Hader over 15 years ago. Updated about 12 years ago.

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

0%

Estimated time:
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)


Files

0010666_test.txt (539 Bytes) 0010666_test.txt Administrator Admin, 2009-03-12 14:55
0010666.patch (12.8 KB) 0010666.patch Administrator Admin, 2009-03-12 15:03
0010666_v2.patch (9.32 KB) 0010666_v2.patch Administrator Admin, 2009-03-19 17:31
0010666_v3.patch (9.31 KB) 0010666_v3.patch Administrator Admin, 2009-05-03 00:52

Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Feature #20199: Refactor tslib_gifBuilder::calcOffset()ClosedOliver Hader2009-03-17

Actions
Related to TYPO3 Core - Feature #20207: Integrate possibility to determine maximum of multiple values in GIFBUILDERClosedOliver Hader2009-03-19

Actions
Related to TYPO3 Core - Bug #22471: Automatic line breaks in GIFBUILDER occur after characters like ' % ...ClosedSusanne Moog2010-04-15

Actions
Related to TYPO3 Core - Bug #22399: Gifbuilder using breakWidth/breakSpace: lineHeight depends on rendered textClosed2010-04-08

Actions
Actions #1

Updated by Oliver Hader over 15 years ago

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

Actions #2

Updated by Oliver Hader over 15 years ago

Committed to SVN Trunk (rev. 5385)

Actions #3

Updated by Tymoteusz Motylewski over 6 years ago

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

Also available in: Atom PDF