Author Topic: Space between the lines of a text ?  (Read 224 times)

Space between the lines of a text ?
« on: 20 Oct 2021, 07:56 »
Hi !

I would like to know if there is any way to tweak the space between the lines of a text, for example in a label, or space bewteen the items of a listbox.

My problem is that I use some fonts that sometimes the letters are walking "one on another"...

I don't know if such parameter can be set in AGS ?

Re: Space between the lines of a text ?
« Reply #1 on: 20 Oct 2021, 16:16 »
It's  "LineSpacing", could be found in the font properties.

In regards to the problem, the TTF fonts in AGS currently have the issue of incorrectly reporting their size in some cases, I'm currently looking into this problem for 3.6.0.

Re: Space between the lines of a text ?
« Reply #2 on: 20 Oct 2021, 16:46 »
Great !

The LineSpacing can't be modified in runtime ?

Re: Space between the lines of a text ?
« Reply #3 on: 20 Oct 2021, 23:58 »
The LineSpacing can't be modified in runtime ?

No, it's readonly. In theory this may be changed if really necessary, but tbh I cannot think of a proper use case. It's a font's property, which means that it will affect all places where this font is drawn at once.
« Last Edit: 21 Oct 2021, 02:49 by Crimson Wizard »

Re: Space between the lines of a text ?
« Reply #4 on: 21 Oct 2021, 02:21 »
If you need the Line Spacing different for different controls (ListBoxes, Labels, etc), you can duplicate the font and have different versions of it for each control. E.g. eFontListBox with Linespacing = 2, eFontLabel with Linespacing = 3, etc.