Skip to main content
Inspiring
August 26, 2011
Question

Punjabi text not rendering correctly in TLFTextField instance?

  • August 26, 2011
  • 1 reply
  • 2854 views

I'm experiencing rendering issues with a SWF file using a runtime generated instance of the TLFTextField class (Flash CS5 or CS5.5), specifically with Punjabi and only on Mac OS browsers. The text displays as control characters (or outlined rectangles), and not in Punjabi. However, if I make an authortime instance of TLFTextField in a FLA, copy and paste Punjabi text into the field on the stage, and publish it with an embedded font like Arial Unicode MS, Punjabi displays just fine. If I try to use the same embedded font on a runtime instance, I still get the weird characters. Even weirder, if I leave the authortime instance on the stage, and then create a runtime instance of TLFTextField, the text shows just fine in both fields! What's happening with the authortime instance that I can not get to happen with the runtime instance?

Many thanks in advance for any suggestions.

-Robert

This topic has been closed for replies.

1 reply

Participating Frequently
August 26, 2011

Hi Robert:

I would suggest you to post this issue to the Flash Pro/Authoring or flash runtime forum. This forum is for the open source project of TLF(Text Layout Framework). The TLFTextField is based on TLF but it's actually a Flash Pro/Authoring component...

Seems your issue is not related to TLF as TLF is only for the layout business. The font embedded and rendering things are flash player runtime business. It also may be related to how the Flash Pro/Authoring implemented it. So, please find the right forum to post your question.

Thanks

Inspiring
August 26, 2011

Gang, respectfully, I've written over a dozen books on Flash (I wrote the original Flash Bible from Flash 4 through Flash CS4). I have a feeling this issue is related to FTE, but I have to start the outermost layers I'm using, which is primarily TLF. YouTube's video player with captions using TLF (so I'm told) and it too cannot render Punjabi. Most users do not use FTE directly, but rather try to follow Adobe's recommendations and use TLF. I figured if anyone else had experienced this issue with Punjabi text, it would be dealt with here. I'll definitely make more posts in other areas on the forum.

So, I presume you don't have any recommendations on what the issue could be? Anyone else?

Adobe Employee
August 26, 2011

Robert,

Gang's point is that TLFTextField is a Flash Authoring component, which the people on the Flash Authoring forum would be better set up to help you with. The font embedding is also Flash Authoring's code. There could be something going wrong in the component or the font embedding code, or there could be an FTE limitation. In the past for script and embedding issues, we've not usually found problems in TLF we could address.

If you'd like to debug the problem further, you could remove the Flash Authoring component and embedding UI from the mix, and try to display Punjabi text using a TextContainerManager in straight ActionScript using a device font. If that does not work, then the problem is likely in FTE. If it does work, I'd try running the same code with an embedded font and see if the problem lies there.

Thanks,

Alan