1 Reply Latest reply: Nov 1, 2011 3:15 PM by spinlight RSS

    Custom fonts in iOS - strange behavior

    spinlight Community Member

      I need to create a simple keypad. When using an embedded font in a dymanic text field I'm getting a strange result. I'm using .appendText in a function like this for each of the numbers:

       

      function button1Press(event:MouseEvent):void {

                          MySolution.appendText("1");

      }

      function button2Press(event:MouseEvent):void {

                          MySolution.appendText("2");

      }

       

      In most cased when I press a second button, both numbers change to the second button that was pressed. Press the two and "2" is displayed. Then press four and it changes to "44". When using system fonts this doesn't occurr. This behavior only happens on the iPad. It's fine in the test window on my computer.

       

      Anyone have ideas for troubleshooting this?

        • 1. Re: Custom fonts in iOS - strange behavior
          spinlight Community Member

          It definitely seems that the iOS build incorrectly displays characters showing the wrong number at times. I can show the same variable in a system font text field that is accurate to the buttons pressed. So it's building the string properly with appendText, just displaying the wrong custom font characters. Anyone seeing this besides me?