Skip to main content
Inspiring
March 21, 2012
Question

Random empty textfields when publishing to Android and iOS

  • March 21, 2012
  • 4 replies
  • 1386 views

I am currently building an application for Desktop, Android, & iOS. In flash builder I am using a swc that I exported from an FLA that contains all the assets (embed fonts and etc). When I run my app on the desktop, everything works as expected. But when I publish to Android or iOS, randomly some of the fonts don't work. What I mean by don't work, is literally the textfield is empty.

Since SOME of the fonts are working, I can confirm that the fonts are correctly being embeded because otherwise I should see no fonts at all.

Example:

Texfield that does work:

-Arial

-size 16

-centered

-letting spacing 0

-line spacing -9.1

-single line

-sitting on half pixel

-Anti-Alias for readability

-autokern is on

Textfield that does not work:

-Arial

-size 20

-centered

-letter spacing 0

-line spacing 0

-single line

-Anti-Alias for readability

-autokern is on

I am listing the details of the textfield in case for some reason only certain settings work...but I always get conflicting results anyway.

This topic has been closed for replies.

4 replies

Inspiring
April 26, 2012

after a month on trying to solve this.... the problem magically disappeared..

So to anyone else who ever has this problem all I can say is... just cross your fingers that it will fix itself one day.

I never changed SDK version or iOS versions... used the 3.2rc on iOS 5.1 and the problem remained...woke up 1 day and it stopped

Known Participant
March 25, 2012

Hi,

We had similar issues with dynamic textfields on iOS, it occured randomly.

We did not have a glue what exactly was wrong, but using the AIR 3.2 rc solved this issue for us on iOS.

Hope this helps.

Inspiring
March 26, 2012

Thank you for your reply. You've restored some of my opinion that I am not crazy....

though it seems to not have solved the issue for me.

Inspiring
March 22, 2012

Going further....

I have found a work-around...though I'm not happy I had to do it. I am able to redraw the textfield with bitmap data and it displays correctly. This tells me that literally the textfield is there and formatted correctly, just not showing up.

Inspiring
March 21, 2012

Actually, to simply this....

I take the textfield that is working.

I copy and paste it into where my other textfield is,

I now have the SAME EXACT textfield (except obviously the instance name).

1 of them works... 1 of them does not work.

my mind is blown.

It does not matter which device either.... everything running iOS and everything running android.... The same textfields are always missing. On desktop everything is perfect

March 21, 2012

Fonts sometimes have restrictions and cannot be embedded, be sure that's not the issue. Illustrator is good at notifying about this stuff when you try to make a pdf with a font that has this restriciton.

Inspiring
March 22, 2012

The font I am using is Arial... either way I don't understand why some textfields work and some do not.