2 Replies Latest reply on Aug 24, 2010 5:27 AM by Ben Danis

    Embedded font flips in combo box

    Ben Danis Level 1

      I have an Flash builder 4 project with 3.5 backwards compatibility

      i'm using an mx combobox. as soon as i set an embedded font to it, the drop down gets flipped as if xScaled to -1

       

      i'm embedding my font like this

      @font-face {
          src: url('../libs/fonts/helvetica/HelveticaNeueLTStd-Roman.otf');
          fontFamily: "_HELVETICA NEUE LT";
      }
      @font-face {
          src: url('../libs/fonts/helvetica/HelveticaNeueLTStd-Bd.otf');
          fontFamily: "_HELVETICA NEUE LT";
          fontWeight: bold;
      }
      /* CSS Document */
      Canvas {
          font-family: "_HELVETICA NEUE LT";
          font-size: 16px;
          color: #333333;
      }

      and all i have on my application is this

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                      xmlns:mx="library://ns.adobe.com/flex/mx"
                      layout="absolute"
                      width="1400" height="768"
                      frameRate="99"
                      backgroundColor="#000000"
                      backgroundGradientColors="#000000,#000000">
          <fx:Style source="../libs/MXMLStyles.css"/>
          <mx:Canvas>
              <mx:ComboBox dataProvider="{['a','b','c']}"/>
          </mx:Canvas>
      </mx:Application>