[TYPO3] multiple line text with gifbuilder

Jacco van der Post jacco at id-internetservices.com
Sun Jun 8 10:27:48 CEST 2008


That sounds good. I allways used sIFR to cope with multi line custom 
font headers. This widens possibilities. sIFR however still has the 
advantage of the user being able to select text, which is of course not 
possible with images.

grtz jacco

> I did solve it by using fake text generated with negative offset. The 
> height is taken from fake instead of real text. Fake text size is set to 
> 20 and the real to 17. It allows to define gap of 6px between the lines.
> 
> 
> // FAKE for setting the XY
> 
> XY = 440,[1.h]+[2.h]+[3.h]+[4.h]
> 
>  1 = TEXT
>  1.fontSize = 20
>  1.text.current = 1
> 
>  1.text.listNum.splitChar = |
>  1.text.listNum = 0
>  1.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 = 17
>   10.text.current = 1
> 
>   10.text.listNum.splitChar = |
>   10.text.listNum = 0
> 
>   10.offset=0,18
>   20 < .10
>   20.text.listNum=1
>   20.offset=0,18+[10.h]+6
>   30 < .10
>   30.text.listNum=2
>   30.offset=0,18+[10.h]+[20.h]+12
>   40 < .10
>   40.text.listNum=3
>   40.offset=0,18+[10.h]+[20.h]+[30.h]+18
> 
> 
> 
> 
> Inspired by:
> http://lists.netfielders.de/pipermail/typo3-english/2007-March/036996.html
> 
> 





More information about the TYPO3-english mailing list