1 Reply Latest reply on May 24, 2006 12:24 AM by Deepak Joshi

    embeded fonts don't work with htmlText

    Steve Onnis
      If you create a text field and have it Render As HTML, its all good until you decide to embed the font for the text field. For some reason, no text inside HTML text gets rendered, but everything else appears around it.

      This is the case regardless of if you set the HTML Render from the GUI or via code.

      Has anyone else experienced this problem?

      this is straight out of the language reference except that i have checnged it to be Render HTML and it does not work

      /////////////////////////////////
      var my_fmt:TextFormat = new TextFormat();
      my_fmt.font = "Arial";
      this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 160, 120);
      my_txt.wordWrap = true;
      my_txt.embedFonts = true;
      my_txt.html = true;
      my_txt.htmlText = "Hello <b>world</b>";
      my_txt.setTextFormat(my_fmt);
      //////////////////////////

      Steve