Line spacing?

So I looked this up but couldn’t find anything (probably doesn’t exist) but for multi-line text, the spacing between lines are too spaced out.

i know you can do .newText individually but that’s just inefficient.

anyone know how to do this?

Hi, I haven’t found anything that allows setting spacing, but on the bright side, according to the Corona roadmap, the text module is up for a revamp this year  :slight_smile:

Ha lol
Out of all the things Corona can do, it can’t do line spacing :confused:

There is the relatively new font metrics api which could be used to get info which can be used.

Then looping through rows and adding a new text object for each row, placing it according to metrics or desired distance.

It’s doable but not optimal.

I think it is important to remember that corona is primarily a game engine more than a business app engine.

But since I am currently developing the latter, i get where you come from mate  :slight_smile:

Corona does not support line spacing.

Rob

Hi Rob,

I’m not sure I understand what you mean by that.

If I create a text object and with text “Hello There\nMy Dear Friend”, it will split for two lines.

By line spacing I understood the space between these two lines.

There is no way to set this line spacing but I was hoping the updated api which I read is in the pipeline for this year, could perhaps open up for that.

Could you elaborate please?

anaqim

I was answering @JoePringles. Corona currently does not support a way to control the line spacing. I can’t commit to what changes may or may not be in future updates.

Rob

Hi, I haven’t found anything that allows setting spacing, but on the bright side, according to the Corona roadmap, the text module is up for a revamp this year  :slight_smile:

Ha lol
Out of all the things Corona can do, it can’t do line spacing :confused:

There is the relatively new font metrics api which could be used to get info which can be used.

Then looping through rows and adding a new text object for each row, placing it according to metrics or desired distance.

It’s doable but not optimal.

I think it is important to remember that corona is primarily a game engine more than a business app engine.

But since I am currently developing the latter, i get where you come from mate  :slight_smile:

Corona does not support line spacing.

Rob

Hi Rob,

I’m not sure I understand what you mean by that.

If I create a text object and with text “Hello There\nMy Dear Friend”, it will split for two lines.

By line spacing I understood the space between these two lines.

There is no way to set this line spacing but I was hoping the updated api which I read is in the pipeline for this year, could perhaps open up for that.

Could you elaborate please?

anaqim

I was answering @JoePringles. Corona currently does not support a way to control the line spacing. I can’t commit to what changes may or may not be in future updates.

Rob