Welcome, Guest
  • Author Topic: Datagrid Fonts Family Problems  (Read 2002 times)

    JOSH_PERU

    • Jr. Programmer
    • **
    • Posts: 73
      • View Profile
      • Email
    Datagrid Fonts Family Problems
    « on: 10/29/06, 13:23 »
    hi, i can change the font family to "Dadhand"... of the datagrid component, but when i see my website in another computer that dont have the font "Dadhand", this font change to the default font... how i can import the font to my swf movie? or exist another way of made it? thanks.

    col = datagrid.getColumnAt(0);
    col.width = 400;
    col.headerText = "Product:";
    col.fontFamily = "Dadhand";
    col.fontWeight = "bold";
    col.fontSize = 20;

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: Datagrid Fonts Family Problems
    « Reply #1 on: 10/30/06, 02:33 »
    From Flash help:

    Quote
    embedFonts  Both
     A Boolean value that indicates whether the font specified in fontFamily is an embedded font. This style must be set to true if fontFamily refers to an embedded font. For example (using a DataGrid instance my_dg):

    my_dg.setStyle("fontFamily", "yourFont");

    my_dg.embedFonts=true;

    Otherwise, the embedded font is not used. If this style is set to true and fontFamily does not refer to an embedded font, no text is displayed. The default value is false.
     

    The font should be in the library (press the upper rigth corner, select new font) and you should use the linkage name of the font to set the datagrid font family. Also use setStyle.

    Jorge

    JOSH_PERU

    • Jr. Programmer
    • **
    • Posts: 73
      • View Profile
      • Email
    Re: Datagrid Fonts Family Problems
    « Reply #2 on: 10/30/06, 12:04 »
    it works now.  :D thanks so much,