Skip to main content
Known Participant
September 26, 2011
Question

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

  • September 26, 2011
  • 2 replies
  • 1174 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.

2 replies

Inspiring
September 28, 2011

Did you get this to work?

Ironically I also just spent much time fighting with some embeded fonts. In the end it does work on my iPod4 / Air3 RC

var tf:TextField         = new TextField();

tf.embedFonts            = true;

In my case, i had forgotten that line...I don't know if anything changed, but i do not specifically recall needing that line before.

Anyway i can confirm it works

I compiled with CS5.5 / Air 3 rc... (newest sdk to date)

Cedmo55Author
Known Participant
September 29, 2011

Hi,

yes. It works now.

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.

Participating Frequently
September 27, 2011