15 Replies Latest reply on Oct 22, 2009 2:15 PM by Peter deHaan

    Embedding Fonts in Beta 2 not working?

    adambergman Level 1

      I am unable to embed fonts with Beta 2 of Flash Builder. I was previously using this following syntax in Beta 1 with everything working perfectly:

       

       

      @font-face {
          src: local("Myriad Pro");
          fontFamily: MyriadPro;
          fontWeight: normal;
          advancedAntiAliasing: true;
      }

       

       

      The above resulted in a compiler error and I have tried using the following and reading the latest documentation, as far as I can tell I am doing everything correctly. Note everything compiles, but the fonts are "missing" in that no characters are displayed in the controls, they are just blank.  I have tried using this with OTF and TTF files:


       

      @font-face {
          src: url("MyriadWebPro.ttf");
          fontFamily: MyriadPro;
          advancedAntiAliasing: true;
          embedAsCFF: true;
      }
      
      

       

      Note that I am sure the file exists and is in the appropriate location.  I have moved the file and it results in an error, so I know Flash Builder is able to find the font file.  For some reason it's just not being embedded properly in the application.  I am completely at a loss here - any help/guidance is appreciated here, until then I guess I'm stuck using Beta 1 as everything works properly there.