Skip to main content
itsatom
Inspiring
September 19, 2016
Answered

Unicode Text with ios10

  • September 19, 2016
  • 1 reply
  • 645 views

Since ios10 Unicode in Text doesn't work...

e.g.

mytext.text= "\u2692";

why?

This topic has been closed for replies.
Correct answer deesharm

Hi Thomas,

We tried with a sample application and figured that problem could be resolved if we use stageText. Please refer to the below code snippet:

package {

  import flash.display.Sprite;

  import flash.geom.Rectangle;

  import flash.text.StageText;

  public class StageTextMulti extends Sprite {

  private var label1:StageText;

  public function StageTextMulti() {

configurationLabel();

}

  private function configureLabel():void {

  label1 = new StageText();

  label1.text = "\u2692";

  label1.color = 0xFF0000

  label1.fontSize = 30;

  label1.stage = stage;

  label1.viewPort = new Rectangle(20, 20, 90, 90);

    }

  }

}

However, We are investigating it further for TextField on iOS 10.

Thanks,

Adobe AIR Team

1 reply

deesharm
Adobe Employee
deesharmCorrect answer
Adobe Employee
September 20, 2016

Hi Thomas,

We tried with a sample application and figured that problem could be resolved if we use stageText. Please refer to the below code snippet:

package {

  import flash.display.Sprite;

  import flash.geom.Rectangle;

  import flash.text.StageText;

  public class StageTextMulti extends Sprite {

  private var label1:StageText;

  public function StageTextMulti() {

configurationLabel();

}

  private function configureLabel():void {

  label1 = new StageText();

  label1.text = "\u2692";

  label1.color = 0xFF0000

  label1.fontSize = 30;

  label1.stage = stage;

  label1.viewPort = new Rectangle(20, 20, 90, 90);

    }

  }

}

However, We are investigating it further for TextField on iOS 10.

Thanks,

Adobe AIR Team

itsatom
itsatomAuthor
Inspiring
September 20, 2016

is it possible to write it in 1 row ?