2 Replies Latest reply on Jun 19, 2011 5:49 PM by stevetemp

    Global Default Font for Application

    stevetemp

      Hi,

       

      I'm using flash builder 4.5 and I would like to set a custom font as the default font for the entire application.

       

      I've tried setting fontFamily="myCustomEmbeddedFont" in the main application with no success.

       

      Is there a spot that I can declare a custom embedded font and then set it to be the global default font for the entire application?

       

      Thanks

        • 1. Re: Global Default Font for Application
          Flex harUI Adobe Employee

          Set it on the global selector.

          • 2. Re: Global Default Font for Application
            stevetemp Level 1

            Hi Flex harUI,

             

            That doesnt work... I also tried fontFamily: myCentGoth;

             

            global

             

            {

             

                selection-color: #950000;

             

                font-family: myCentGoth;

             

            }

             

            @font-face {


                src: url("assets/GOTHIC.TTF");
                fontFamily: myCentGoth;
                embedAsCFF: true;
                fontWeight: normal;
            }
            @font-face {
                src: url("assets/GOTHICB.TTF");
                fontWeight: bold;
                fontFamily: myCentGoth;
                embedAsCFF: true;
            }
            @font-face {
                src: url("assets/GOTHICBI.TTF");
                fontWeight: bold;
                fontStyle: italic;
                fontFamily: myCentGoth;
                embedAsCFF: true;
            }
            @font-face {
                src: url("assets/GOTHICI.TTF");
                fontStyle: italic;
                fontFamily: myCentGoth;
                embedAsCFF: true;
                fontWeight: normal;
            }