1. var codeTextField:TextField = new TextField();
  2. codeTextField.embedFonts = true;
  3. codeTextField.autoSize = TextFieldAutoSize.LEFT;
  4. codeTextField.text = "Some text";
  5.  
  6. // here I use the font name of the timeline textfield to show that suffers the same problem
  7. // as well, however I have tried setting it manually as well i.e. "Font'name"
  8. codeTextField.setTextFormat( new TextFormat( timelineTextField.getTextFormat().font));
  9. addChild( codeTextField);
  10.  
  11. trace( codeTextField.getTextFormat().font); // traces "Font"
  12. trace( timelineTextField.getTextFormat().font); // traces "Font'name"