styledText code fixed

I can’t reply to this older topic:

https://forums.coronalabs.com/topic/70969-stylized-text-lua-only-works-first-time-loaded/

so I had to start a new topic.

It took a while for Corona engineering to get back to me, and then a longer time for me to fix my code.  I had to change the approach quite a bit since I was misunderstanding how display.capture() worked and at what time it could work.

If you download all the code from GitHub, the sample project now runs in both the Windows and Mac simulators:

https://github.com/prairiewest/corona_text_shadow

Todd

There was another problem when testing on real Android hardware, which is that the OpenGL textures for the captured images was being purged.  So I recently updated the code and now it caches those to a local folder (Android only).

There was another problem when testing on real Android hardware, which is that the OpenGL textures for the captured images was being purged.  So I recently updated the code and now it caches those to a local folder (Android only).