Page 1 of 1

Little spacing between boxes even with spacing set to 0

Posted: Mon Nov 01, 2021 6:54 pm
by felsenstern
Hiya,

I'm trying to display several lines of text in a vbox. Something like this:

Code: Select all

vbox:
	xsize 600
	spacing 0
	for q in list_of_textlines:
		text q
Unfortunately even with spacing set to 0, when the text is displayed within the box, I always can tell where one box ends and the next begins due to the slightly larger gap in the line spacing. Is there any other parameter or setting which I could change to remove this little gap?

Re: Little spacing between boxes even with spacing set to 0

Posted: Mon Nov 01, 2021 9:13 pm
by philat
spacing can have a negative value. Alternatively, you can increase the line spacing for the text, I suppose.

Re: Little spacing between boxes even with spacing set to 0

Posted: Mon Nov 01, 2021 11:13 pm
by Imperf3kt
Have you checked its not being caused by scaling?

What does it look like in fullscreen? What about at different resolutions?

Re: Little spacing between boxes even with spacing set to 0

Posted: Tue Nov 02, 2021 2:19 am
by felsenstern
Imperf3kt wrote:
Mon Nov 01, 2021 11:13 pm
Have you checked its not being caused by scaling?

What does it look like in fullscreen? What about at different resolutions?
the gap stays relatively the same no matter if I resize the game window or switch to full screen.
philat wrote:
Mon Nov 01, 2021 9:13 pm
spacing can have a negative value. Alternatively, you can increase the line spacing for the text, I suppose.
This seems to do the trick... at a value of spacing -5 I can't distinguish the line spacing between boxes from the normal line spacing. It still feels a bit dirty using this method...