6 Replies Latest reply on Dec 19, 2011 8:38 PM by supersonicecho

    This component requires that the embedded font be declared with embedAsCFF=false.

    VivD Level 1

      I'm getting the following warning for my project.

       

      "warning: incompatible embedded font 'MyFont' specified for views::MyViewInnerClass0 (MyViewInnerClass0_61) . This component requires that the embedded font be declared with embedAsCFF=false."

       

      Here's what I have in my style.css file.

       

      /* CSS file */

      @namespace s "library://ns.adobe.com/flex/spark";

      @namespace supportClasses "spark.globalization.supportClasses.*";

      @namespace views "views.*";

       

      @font-face {

                src: url("assets/MyFont.ttf");

        fontFamily: "MyFont";

        advancedAntiAliasing: true;

        embedAsCFF: true;

       

      }

       

      @font-face {

                src: url("assets/MyFont.ttf");

        fontFamily: "MyFont";

        advancedAntiAliasing: false;

        embedAsCFF: false;

       

      }

       

      The 2nd font section I have is what is suggested as the fix in most places but that isn't working out for me. I wonder if I'm missing something else.