0 Replies Latest reply on Sep 23, 2007 2:41 PM by Robert Pritchard

    Embed Font in a List Control

    Robert Pritchard
      I have no problem embeding fonts to be used in dynamic text but I cannot get my style to apply to a list control using AS3.

      My style code is:
      import fl.managers.StyleManager;
      var menuStyle:TextFormat = new TextFormat();
      menuStyle.color = 0xFFFFFF;
      menuStyle.size = 20;
      menuStyle.font = new CKTerzini().fontName;
      menuStyle.letterSpacing = 1;
      menuStyle.align = "center";
      StyleManager.setComponentStyle(List, "textFormat", menuStyle);

      My list control code is:
      my_list.setStyle("embedFonts", true);
      //my_list.setStyle("textFormat", menuStyle); DOES NOT WORK
      my_list.setRendererStyle("textFormat", menuStyle);

      I also have the font added to the library and properly linked. (Class name set to CKTerzini).

      This code works fine with the font on the system but not on a computer without the font.

      I have tested that the font is embed in the SWF by using the style on dynamic text and it works fine.

      Any suggestions would be greatly welcomed...

      Robert Pritchard
      Nerds Software