Skip navigation
Currently Being Moderated

Punjabi text not rendering correctly in TLFTextField instance?

Aug 25, 2011 11:06 PM

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

 
Replies
  • Currently Being Moderated
    Aug 25, 2011 11:53 PM   in reply to ROBERT REINHARDT

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 26, 2011 9:42 AM   in reply to ROBERT REINHARDT

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 26, 2011 10:27 AM   in reply to ROBERT REINHARDT

    Robert,

     

    I've asked someone who knows the embedding code to take a look at this thread.

     

    Thanks,

     

    Alan

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 26, 2011 11:04 AM   in reply to AlanStearns

    Robert,

    Would it be possible for you to share your FLA with me? There are so many possible ways for things to go wrong once you start instantiating TLFTextField from your own AS that I can't easily debug this over the forum. But, if you could share it w/me, I'd be more than happy to take a look.

     

    Rusty

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 26, 2011 11:48 AM   in reply to ROBERT REINHARDT

    I sent you a private message w/my address.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points