title: Flex 4.6: embedded fonts not applied to TextField
body: <p>I am trying to use embedded fonts (Flex 4.6) in a UITextField. As long as I use a font that is registered with Windows, it works fine, but for a font not registered, the UITextField defaults to TimesRoman (or something similar)</p>
  
  <p>Note that when I check to see if the font is embedded, it returns True (FlexGlobals.topLevelApplication.systemManager.isFontFaceEmbedded(txtFormatCoda))</p>
  
  <p>So what am I missing? </p>
  
  <p>In the code below, if I add the font Kredit to Windows Font, the UI text field appears in Kredit font, but if I remove it from Windows/font directory, the field appears in TimesNewRoman (default font).</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                 xmlns:s="library://ns.adobe.com/flex/spark" 
                 xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"  creationComplete="onComplete()"&gt;
      &lt;s:Group id="TextCanvas" x="121" y="97" width="474" height="800"&gt;
      &lt;/s:Group&gt;
      &lt;fx:Style&gt;
          @font-face {
              src: url("fonts/KREDIT1.TTF");
              fontFamily: Kredit;
              embed-as-cff:false;
              advancedAntiAliasing:true;
          }
      &lt;/fx:Style&gt; 
      &lt;fx:Script&gt;     
          import mx.core.FlexGlobals;
          import mx.core.UIComponent;
          import mx.core.UITextField;
          import mx.core.UITextFormat;
  
  
          public function onComplete():void{
              var txtFldCoda:UITextField = new UITextField();
              var txtFormatCoda:UITextFormat = new UITextFormat(this.systemManager);
              var compCoda:UIComponent = new UIComponent();
              compCoda.addChild(txtFldCoda);
              txtFldCoda.embedFonts=true;         
              txtFldCoda.width=300;
              txtFormatCoda.size=33;
              TextCanvas.addElement(compCoda);
              txtFldCoda.text="Testing Kredit";
              txtFormatCoda.font= "Kredit";
              txtFormatCoda.color="0x0ff345";
              var b2:Boolean = FlexGlobals.topLevelApplication.systemManager.isFontFaceEmbedded(txtFormatCoda);
              if(b2==false){
                  trace("not embedded: " + txtFormatCoda.font);
              }
              txtFldCoda.defaultTextFormat= txtFormatCoda;//note that setTextFormat must be after setting the text
              txtFldCoda.setTextFormat(txtFormatCoda);//note that setTextFormat must be after setting the text
              txtFldCoda.x=0;
              txtFldCoda.y=100;           
          }       
      &lt;/fx:Script&gt;
  &lt;/s:Application&gt;
  </code></pre>