Project

General

Profile

Actions

Bug #95497

closed

GIFBUILDER: TEXT.text lost stdWrap datatype

Added by Julian Hofmann over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-10-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

The text property of GIFBUILDERs TEXT object had been of datatype "->stdWrap".
Now, using everything except a simple string ends up in output "text".

Example 1: simple text

page >
page = PAGE
page {
  10 = IMAGE
  10 {
    file = GIFBUILDER
    file {
      format = jpg
      quality = 88
      XY = 300,50
      backColor = #fc8123
      20 = TEXT
      20 {
        offset = 10,22
        fontColor = #ffffff
        fontFile = EXT:website/Resources/Public/Fonts/vera.ttf
        text = TYPO
      }
    }
  }
}

Output:

Example 2: text with wrap

page >
page = PAGE
page {
  10 = IMAGE
  10 {
    file = GIFBUILDER
    file {
      format = jpg
      quality = 88
      XY = 300,50
      backColor = #fc8123
      20 = TEXT
      20 {
        offset = 10,22
        fontColor = #ffffff
        fontFile = EXT:website/Resources/Public/Fonts/vera.ttf
        text = TYPO
        text.wrap = |3
      }
    }
  }
}

Output:

Example 3: text overridden by cObject

page >
page = PAGE
page {
  10 = IMAGE
  10 {
    file = GIFBUILDER
    file {
      format = jpg
      quality = 88
      XY = 300,50
      backColor = #fc8123
      20 = TEXT
      20 {
        offset = 10,22
        fontColor = #ffffff
        fontFile = EXT:website/Resources/Public/Fonts/vera.ttf
        text = EXAMPLE
        text.override.cObject = TEXT
        text.override.cObject {
          value = TYPO
          wrap = |3
        }
      }
    }
  }
}

Output:

Files


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #91834: Use stdWrapValue where possible part 2Closed2020-07-21

Actions
Actions

Also available in: Atom PDF