Skip to main content
Known Participant
Sep 26, 2011 7:51 PM UTC
Answered

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

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 is closed to new replies. Start a new post to keep the conversation going.
sanika KulshreshthaCorrect answer
Participating Frequently
Sep 27, 2011 5:30 AM UTC

7 replies

Cedmo55Author
Known Participant
Sep 29, 2011 7:50 AM UTC

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.

Translate
Cedmo55Author
Known Participant
Sep 27, 2011 11:00 AM UTC

Hi again,

may I need Flex 4.6 pre-release?

Translate
chris.campbell
Legend
Sep 27, 2011 12:03 AM UTC

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

Translate
sanika KulshreshthaCorrect answer
Participating Frequently
Sep 27, 2011 5:30 AM UTC
Participating Frequently
Sep 27, 2011 8:21 AM UTC

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

Translate