What is the "best / recommended" way to print formatted text on the display?

I have a need to display text formatted on the display. Some of the words will need to be underlined, bold faced, italicized, and a few bullet items as well…

When I use newText to output the text, it does not recognize the \149 escape character as a bullet item. It replaces the \149 with a diamond like character, which I assume is an “unknown” character.

What would be best is something that would let me take an RTF file and display it, embedded in a window. Another option would be displaying an embedded HTML file using WebView() I guess.

So, do any of the pro’s out there know how to do this properly?

Thanks!
stu [import]uid: 99429 topic_id: 36119 reply_id: 336119[/import]

Hi @stubones99,
I was just about to respond to a related post about this, when I saw your question. :slight_smile:

At this time, Corona doesn’t feature built-in “inline” text formatting like bolding, underlining, or italicizing individual words within a sentence. However, helpful Corona developer “richard9” has built a CodeShare project called “Typer” which gives you a certain degree of power over formatting text blocks, including line breaks.

http://developer.coronalabs.com/code/typer-way-type-text-out-letter-letter

There are other similar CodeShare projects if you wish to search here (http://developer.coronalabs.com/code/), but this above example is recent and should get you started.

Sincerely,
Brent Sorrentino [import]uid: 200026 topic_id: 36119 reply_id: 143482[/import]

on the second part of the question, how do I inject symbols and other special characters into text with Corona?

Thanks!
stu [import]uid: 99429 topic_id: 36119 reply_id: 143502[/import]

The best way to do formatted text is to use a webView. (native.newWebView), you can write HTML formatted text with CSS and even JavaScript if necessary out to a local file and then use the webView to display it. You can do italics, bolding, colors, different fonts, etc.

Now for display.newText(), it will show any UTF-8 glyph that the font supports. So your bullets are showing up as diamonds with a ? mark in the middle that typically indicates the font doesn’t know how to render that glyph.
[import]uid: 199310 topic_id: 36119 reply_id: 143516[/import]

Hi @stubones99,
I was just about to respond to a related post about this, when I saw your question. :slight_smile:

At this time, Corona doesn’t feature built-in “inline” text formatting like bolding, underlining, or italicizing individual words within a sentence. However, helpful Corona developer “richard9” has built a CodeShare project called “Typer” which gives you a certain degree of power over formatting text blocks, including line breaks.

http://developer.coronalabs.com/code/typer-way-type-text-out-letter-letter

There are other similar CodeShare projects if you wish to search here (http://developer.coronalabs.com/code/), but this above example is recent and should get you started.

Sincerely,
Brent Sorrentino [import]uid: 200026 topic_id: 36119 reply_id: 143482[/import]

on the second part of the question, how do I inject symbols and other special characters into text with Corona?

Thanks!
stu [import]uid: 99429 topic_id: 36119 reply_id: 143502[/import]

The best way to do formatted text is to use a webView. (native.newWebView), you can write HTML formatted text with CSS and even JavaScript if necessary out to a local file and then use the webView to display it. You can do italics, bolding, colors, different fonts, etc.

Now for display.newText(), it will show any UTF-8 glyph that the font supports. So your bullets are showing up as diamonds with a ? mark in the middle that typically indicates the font doesn’t know how to render that glyph.
[import]uid: 199310 topic_id: 36119 reply_id: 143516[/import]

Hi @stubones99,
I was just about to respond to a related post about this, when I saw your question. :slight_smile:

At this time, Corona doesn’t feature built-in “inline” text formatting like bolding, underlining, or italicizing individual words within a sentence. However, helpful Corona developer “richard9” has built a CodeShare project called “Typer” which gives you a certain degree of power over formatting text blocks, including line breaks.

http://developer.coronalabs.com/code/typer-way-type-text-out-letter-letter

There are other similar CodeShare projects if you wish to search here (http://developer.coronalabs.com/code/), but this above example is recent and should get you started.

Sincerely,
Brent Sorrentino [import]uid: 200026 topic_id: 36119 reply_id: 143482[/import]

on the second part of the question, how do I inject symbols and other special characters into text with Corona?

Thanks!
stu [import]uid: 99429 topic_id: 36119 reply_id: 143502[/import]

The best way to do formatted text is to use a webView. (native.newWebView), you can write HTML formatted text with CSS and even JavaScript if necessary out to a local file and then use the webView to display it. You can do italics, bolding, colors, different fonts, etc.

Now for display.newText(), it will show any UTF-8 glyph that the font supports. So your bullets are showing up as diamonds with a ? mark in the middle that typically indicates the font doesn’t know how to render that glyph.
[import]uid: 199310 topic_id: 36119 reply_id: 143516[/import]

Hi @stubones99,
I was just about to respond to a related post about this, when I saw your question. :slight_smile:

At this time, Corona doesn’t feature built-in “inline” text formatting like bolding, underlining, or italicizing individual words within a sentence. However, helpful Corona developer “richard9” has built a CodeShare project called “Typer” which gives you a certain degree of power over formatting text blocks, including line breaks.

http://developer.coronalabs.com/code/typer-way-type-text-out-letter-letter

There are other similar CodeShare projects if you wish to search here (http://developer.coronalabs.com/code/), but this above example is recent and should get you started.

Sincerely,
Brent Sorrentino [import]uid: 200026 topic_id: 36119 reply_id: 143482[/import]

on the second part of the question, how do I inject symbols and other special characters into text with Corona?

Thanks!
stu [import]uid: 99429 topic_id: 36119 reply_id: 143502[/import]

The best way to do formatted text is to use a webView. (native.newWebView), you can write HTML formatted text with CSS and even JavaScript if necessary out to a local file and then use the webView to display it. You can do italics, bolding, colors, different fonts, etc.

Now for display.newText(), it will show any UTF-8 glyph that the font supports. So your bullets are showing up as diamonds with a ? mark in the middle that typically indicates the font doesn’t know how to render that glyph.
[import]uid: 199310 topic_id: 36119 reply_id: 143516[/import]