Issue Bug Closed

#95497GIFBUILDER: TEXT.text lost stdWrap datatype

Julian Hofmann 10/06/21, 14:50 updated 10/04/22, 14:12

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:
TYPO_1c823fdd525835efba875c208c326d43.jpg

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:
text_d696216395348068f88d941c2fce3e48.jpg

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:
text_d696216395348068f88d941c2fce3e48.jpg

Reviews 1