Skip to main content
Known Participant
September 26, 2011
Answered

No Font-Embedding using AIR 3.0 in Flash Professional (for iOS Development)

  • September 26, 2011
  • 3 replies
  • 9433 views

Hey there,

we're developing some plain AS3 projects using Flash Professional (to compile) and Flash Builder.

All is working good with the new AIR 3.0 release and performance is better than with AIR 2.6

I followed this tutorial and simlar to use AIR 3.0 instead of AIR 2.6:

http://kb2.adobe.com/cps/908/cpsid_90810.html

Sadly today we saw a new issue with font embedding. Neither using Flash Professional itself or Embed-Tag in the code itself works. Also we see that the SWF size does not change when adding multiple fonts.

Anybody has a clue where this issue might be caused? I can think that the way fonts are embedded has changed in AIR 3.0 and it's not working with the "replace AIR 2.6 with AIR X.Y trick".

Any help welcome.

Best,

Cedric

This topic has been closed for replies.
Correct answer sanika Kulshreshtha

Try the instructions at http://help.adobe.com/en_US/as3/iphone/WS789ea67d3e73a8b2-5b45bb17124b3295cc8-7ffd.html.

3 replies

Cedmo55Author
Known Participant
September 29, 2011

Hi again,

The problem was the TLFTextField itself. Strangely in debug on my Mac fonts showed of correctly, but on the device not. So I assumed that there was an problem of embedding.

But after changing setDefaultFormat to setFormat, then setting the tlftextfield.htmlText = ".." and after that doing tlftextfield.textFlow.flowComposer.updateAllControllers(); it works on the device.

Strange to me, that with active fonts on my Mac it works without updateAllControllers - but on the devices not.

Thanks for the hints.

Cedmo55Author
Known Participant
September 27, 2011

Hi again,

may I need Flex 4.6 pre-release?

chris.campbell
Legend
September 27, 2011

Hi Cedric,

I'm going to ask around about this to see if anyone knows what might be going on.  In the meantime, could you please open a new bug report on this over at bugbase.adobe.com?  Please post back with the URL so that others affected can add their comments and votes.

Thanks,

Chris

sanika KulshreshthaCorrect answer
Participating Frequently
September 27, 2011
Participating Frequently
September 27, 2011

No issues exit using AIR 3.0 in Flash Professional CS5.5 with a sample app.This app was created according to this article at http://www.adobe.com/devnet/flash/quickstart/embedding_fonts.html.

P.S. please make sure the swf version has been changed to 13 when modifying the AiriPhone.xml.

If there is still an issue,it will help a lot with a sample code to reproduce this problem.

Thanks

Liping