Skip to main content
Known Participant
September 20, 2011
Question

iOS flash cs5 input text box behaving strange ?

  • September 20, 2011
  • 2 replies
  • 3469 views

Hi,

If I add an input text box to my ipad app and then compile to ipa and run on the real device then I get strange behaviour.

For example my text font (of the input field) is 100% sure fully embedded in the project.

But, when you set the focus to the input text (which I do automatically with stage.focus=myInputText then the input field does get focus, but the font used is sooooo extremely large and not the font which I embedded.

Now it looks like Ipad (Iphone possibly too) changes these properties when we are actually entering text, so als long as the input text is in editing mode, it is that huge ugly font.

Are there known techniques to handle this and to be able to use the originally intended font in its originally intended size ?

Kind regards,

Bart

This topic has been closed for replies.

2 replies

relaxatraja
Inspiring
September 21, 2011

Fontlist by Adobe:

For best appearance, use device fonts. For example, the following fonts are device fonts on the iPhone:

Serif: Times New Roman, Georgia, and _serif

Sans-serif: Helvetica, Arial, Verdana, Trebuchet, Tahoma, and _sans

Fixed-width: Courier New, Courier, and _typewriter

  Use fonts that are 14 pixels or larger.

Known Participant
March 26, 2012

I had same issue, for me it was usage of:

textfield.requestSoftKeyboard() and/or textfield.needsSoftKeyboard 

both of those are not supported on iOS but they weren't ignored they were producing what you described.

Adobe Employee
September 21, 2011

When an editable text field has focus, what the user sees is a native iOS text field which is not rendered by the AIR runtime. As a result, any fonts embedded in the SWF are no longer used in this editing mode. However, if the font size is wildly different from what it is when the text field doesn't have focus, that would be a bug - could you please report one at https://bugbase.adobe.com/index.cfm?event=newBug? Thanks.

Participating Frequently
September 21, 2011

You could work around the problem using the suggestion at http://forums.adobe.com/message/3385242#3385242

Thanks,

Sanika