Forums / Setup & design / texttoimage - how to set character size?

texttoimage - how to set character size?

Author Message

Valentin Svelland

Monday 01 September 2003 6:42:37 am

I'm trying out the useful texttoimage-operator but I'm having trouble setting the font size of the image-output.

This works fine:
{$content_version.data_map.somevariable.content|texttoimage('arial')}

..but generates a rather large fontsize-display of the content of my variable. So in lack of documentation I try this (which doesn't work as well):

{$content_version.data_map.somevariable.content|texttoimage('arial',12)}

I'm trying to set the font size of image-output to 12 px here, and have tried doing so in a lot of different ways of syntax.

Anyone know if it's even possible to scale the font size of the texttoimage()-operator?? :)

Paul Forsyth

Monday 01 September 2003 6:59:43 am

Have you looked at the settings file 'texttoimage.ini'?

I've not used it personally but that file seems to have a lot of font info.

Paul

Björn [email protected]

Monday 01 September 2003 8:45:35 am

that's the place to look. I have personal experience with it. Of cource you can set the font size

I would recommend defining all needed definitions. Over the texttoimage.ini
and use it like this.
{$content_version.data_map.somevariable.content|texttoimage('customstyle')}

The second option didn't work out right for me too.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Valentin Svelland

Thursday 04 September 2003 1:40:03 am

Thanks guys, I figured it out with your help. Made a new style in texttoimage.ini.

Thomas Brandl

Wednesday 10 September 2003 5:38:15 am

You can also specify the font-size directly:
{$content|texttoimage('arial',,2)}

Note: Two commas!, font-size is third argument