---
title: "GIFBUILDER und Text Abstand"
url: "https://www.typo3.net/d/98526-gifbuilder-und-text-abstand"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage"]
created: "2010-04-29"
last_reply: "2010-05-14"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# GIFBUILDER und Text Abstand

TYPO3 › TypoScript · 1 Antwort · gestartet 2010-04-29

## Eröffnungsbeitrag

**arkadius** · 2010-04-29 · [Beitrag #1](https://www.typo3.net/d/98526-gifbuilder-und-text-abstand/1)

Hallo !

Ich komme irgendwie nicht weiter !

Ich möchte aus dem Inhalt vom Header Field ( Textelement ) ein Bild erstellen lassen per Gifbuider.Ich habe dafür folgenden Code :

```typoscript
lib.stdheader.10 {
   
    #headline layout1
	1 = IMAGE
	1 {
		alttext.field = header // subheader
		titleText.field = header // subheader
		wrap = |
		file = GIFBUILDER
		file {
			backColor = #FFFFFF
			transparentBackground = 1
			
			// FAKE for setting the XY
			// Abstand nach Headline ist bei 2 zeiliger Headline anders als bei einzeiliger. Daf&#8730;ºr dieser Weg.
			XY = [10.w]+10,[1.h]+[2.h]+[3.h]+[4.h]
			
			1 = TEXT
			1{
				#ANPASSEN fontSize f&#8730;ºr abstand nach headline
				fontSize = 63
				fontFile = fileadmin/x_media/fonts/Frutiger_Bold_Regular.ttf
				text.current = 1
				
				text.listNum.splitChar = |
				text.listNum = 0
				offset= -200,-200
			}
			
			2 < .1
			2.text.listNum=1

			3 < .1
			3.text.listNum=2
			4 < .1
			4.text.listNum=3
			
			
			// and here real text which appears
			10 = TEXT
			10{
				fontSize = 40
				fontFile = fileadmin/x_media/fonts/Frutiger_Bold_Regular.ttf
				#fontColor = #161616
				fontColor = #919191
				#niceText = 1
				
				text.field = header
				text.current = 1				
				text.listNum.splitChar = |
				text.listNum = 0
				offset=0,40
			}
			20 < .10
			20.text.listNum=1
			#ANPASSEN letzter wert &#8730;§ndert den zeilenabstand
			20.offset=0,18+[10.h]+35
			30 < .10
			30.text.listNum=2
			30.offset=0,18+[10.h]+[20.h]+49
			40 < .10
			40.text.listNum=3
			40.offset=0,18+[10.h]+[20.h]+[30.h]+66
			
			50 = SCALE
			50 {
				width = [10.w]+10/2+5
				height = [1.h]+[2.h]+[3.h]+[4.h]/2+5
			}
		}
	}
	2 < .1
	5 < .1
}
```

Alles klappt wunderbar, wenn der Inhalt eine Zeile lang ist. Beinhaltet der Inhalt aber Text über zwei Zeilen, so ist der Abstand nach unten zu groß. Ich komme nicht drauf, wieso. Ideen ?

## Antworten

### [#2](https://www.typo3.net/d/98526-gifbuilder-und-text-abstand/2) · theis · 2010-05-14

Hallo arkadius,

hm, schwer zu sagen, es kann an so vielem liegen.

Falls du interesse hast, kann ich mir das ganze mal anschauen. Schreibe mir einfach ne PM mit den Zugangsdaten.

Gruss
Theis

---

Quelle: „GIFBUILDER und Text Abstand“, typo3.net, https://www.typo3.net/d/98526-gifbuilder-und-text-abstand
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
