display.newText() lineheight and letterspacing

I wouldn’t expect Corona to analyze every font.

I’d just like the ability to set the line height myself if I don’t like the default.

It’s really one of those basic stylization things that most designers have an interest in tweaking.

I also posted a screenshot above from our real world app that it does cause a problem with.  I will have to use a different font or use/update the newParagraph function from the crawlspace lib.  My point still being that line height control is a basic thing that folks shouldn’t have to write wrappers for in 2014. :wink:

Hello

and yes, lineHeight and letterSpacing is badly needed!

I haven’t read all posts here, but as I produced some fonts myself, I would like to add:

lineHeight might not be a big thing to achieve. Every font delivers its geometry which is read and used by the script. display.newText() seems to read the basic fontHeight of a font, using this as a parameter for lineHeight. This is why the lines in rendered texts are so narrow, it is like lineHeight 1.0 in other applications. It’s not best readable.

It would be a great if the Corona Engineering could at least add this feature: with units of em = multiples of the fontSize or in Corona pixel. 

If the Engineering need some more detail information about font techniques, please let me know, maybe I can help.

I just declined a feature request on this since it had been nearly two years with a total of two votes on it. Feel free to create a new feedback item for it, though it would be a better use of your votes to vote on some of the other display.newText() based feature requests.

http://feedback.coronalabs.com

Rob

Hi Rob,

there are aome different feature requests about text and aligning / line height / spacing / manipulating. I searched for “text” as a keyword.

The sum of all votes is 380.

Maybe there is a chance to combine these feature requests as they address mostly the same topic, with a little different details.

164 votes:

more control and choices for text objects

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/3575422-more-control-and-choices-for-text-objects

120 votes for:

display.newText() advanced options / justification

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/4784694-display-newtext-advanced-options-justification

51 votes for:

Stroke to text

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/3575018-stroke-to-text

45 votes for:

Manipulate text size, style, font, and color like HTML

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/6265139-manipulate-text-size-style-font-and-color-like

Kind regards from Berlin,

Simon

Yes, we can combine those into a mega request. It’s a lot of votes. But text is a complex thing that can pull our engineers down a rabbit hole that will. I suspect that Perk will have some ideas on what things we should work on next, but we’ve not had time to have those conversations yet. 

Rob

Hi Rob, 

this is good news for all who love good typography in apps :slight_smile:

Many Corona developers would be very happy!

My suggestion would be:

  1. line height and letter spacing

  2. manipulation of single or several strings inside of a text: in size, position, color and even font style, making text like “CO2” possible

  3. other text manipulation like stroke or outlined letters

If the default line height is left at 1.0, there might be no change to existing apps.

Simon

Personally I don’t think its either “good” or “news”. It’s purely administrative information. I can combine the various requests into one. I haven’t yet, because I need to make sure all of the various  items are represented in the mega-request. Also I’m concerned the bigger the task, the harder it will to get the request done.

Please do not read my previous comment as any commitment to any progress on it.

Rob

Adjusting line height and character spacing is a critical feature!

My manager has asked me to suggest a 2D platform for mobile development; and I am having to pass on Corona because it won’t be able to deliver even the minimum basic requirements that the design team expects. I am personally a huge fan of Corona, but with modern app development the in-ability to do even the most basic text formatting is crippling.

Please fix this!!!

1 Like

Hello

and yes, lineHeight and letterSpacing is badly needed!

I haven’t read all posts here, but as I produced some fonts myself, I would like to add:

lineHeight might not be a big thing to achieve. Every font delivers its geometry which is read and used by the script. display.newText() seems to read the basic fontHeight of a font, using this as a parameter for lineHeight. This is why the lines in rendered texts are so narrow, it is like lineHeight 1.0 in other applications. It’s not best readable.

It would be a great if the Corona Engineering could at least add this feature: with units of em = multiples of the fontSize or in Corona pixel. 

If the Engineering need some more detail information about font techniques, please let me know, maybe I can help.

I just declined a feature request on this since it had been nearly two years with a total of two votes on it. Feel free to create a new feedback item for it, though it would be a better use of your votes to vote on some of the other display.newText() based feature requests.

http://feedback.coronalabs.com

Rob

Hi Rob,

there are aome different feature requests about text and aligning / line height / spacing / manipulating. I searched for “text” as a keyword.

The sum of all votes is 380.

Maybe there is a chance to combine these feature requests as they address mostly the same topic, with a little different details.

164 votes:

more control and choices for text objects

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/3575422-more-control-and-choices-for-text-objects

120 votes for:

display.newText() advanced options / justification

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/4784694-display-newtext-advanced-options-justification

51 votes for:

Stroke to text

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/3575018-stroke-to-text

45 votes for:

Manipulate text size, style, font, and color like HTML

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/6265139-manipulate-text-size-style-font-and-color-like

Kind regards from Berlin,

Simon

Yes, we can combine those into a mega request. It’s a lot of votes. But text is a complex thing that can pull our engineers down a rabbit hole that will. I suspect that Perk will have some ideas on what things we should work on next, but we’ve not had time to have those conversations yet. 

Rob

Hi Rob, 

this is good news for all who love good typography in apps :slight_smile:

Many Corona developers would be very happy!

My suggestion would be:

  1. line height and letter spacing

  2. manipulation of single or several strings inside of a text: in size, position, color and even font style, making text like “CO2” possible

  3. other text manipulation like stroke or outlined letters

If the default line height is left at 1.0, there might be no change to existing apps.

Simon

Personally I don’t think its either “good” or “news”. It’s purely administrative information. I can combine the various requests into one. I haven’t yet, because I need to make sure all of the various  items are represented in the mega-request. Also I’m concerned the bigger the task, the harder it will to get the request done.

Please do not read my previous comment as any commitment to any progress on it.

Rob

So what is the latest news on the mega request for more flexibility with fonts, line height and character spacing etc.?

We are constantly building custom solutions to circumvent this limitation and wasting a lot of time during the process.

Thanks

Adjusting line height and character spacing is a critical feature!

My manager has asked me to suggest a 2D platform for mobile development; and I am having to pass on Corona because it won’t be able to deliver even the minimum basic requirements that the design team expects. I am personally a huge fan of Corona, but with modern app development the in-ability to do even the most basic text formatting is crippling.

Please fix this!!!

So what is the latest news on the mega request for more flexibility with fonts, line height and character spacing etc.?

We are constantly building custom solutions to circumvent this limitation and wasting a lot of time during the process.

Thanks

In 2020, it seems this feature still doesn’t exist, and it’s highly frustrating. PLEASE ADD

I am very interested in this feature too. Same as paulscottrobson, we are using Corona as business app too.

Without this feature, the whole reading experience is not superb.. .