1 Reply Latest reply on Oct 29, 2009 11:00 PM by kglad

    Embedding Font

    Sreelash Level 1

      Hi,

                        I am embedding the font verdana to a textField. But its not getting worked. Also i have used the linkage to actionscript with the embedding font. The following code i have used for embedding. Can anybody help me by notifying the problem.

       

      /*var textFormat = new TextFormat();
          videoHolderMC.videoFrame.titleMC.titleTxt.embedFonts = true;
          textFormat.font = "verd";
          videoHolderMC.videoFrame.titleMC.titleTxt.setTextFormat(textFormat); */
          videoHolderMC.videoFrame.titleMC.titleTxt.text = title;

       

      Thanks and Regards,

                      Sreelash.

        • 1. Re: Embedding Font
          kglad Adobe Community Professional & MVP

          if your text property has already been assigned to your textfield, use setTextFormat().  if you have you're going to assign the text property after assigning a textformat, use setNewTextFormat:

           


          var textFormat = new TextFormat();
              videoHolderMC.videoFrame.titleMC.titleTxt.embedFonts = true;
              textFormat.font = "verd";
              videoHolderMC.videoFrame.titleMC.titleTxt.setNewTextFormat(textFormat);
              videoHolderMC.videoFrame.titleMC.titleTxt.text = title;