2 Replies Latest reply on Feb 8, 2010 12:27 PM by Peter deHaan

    Problems with CSS font embedding in Flex 4

    Kristopher Schultz

      I'm having trouble embedding fonts using the local() reference style. The example code below works fine if I create a Flex SDK 3.4 project in Flash Builder 4, beta 2:

       

      @font-face

      {

        src: local("Verdana");

        font-family: "MyVerdana";

      }

       

      But if I try to use the same code in a Flex SDK 4 project I get an error that says "unable to build font 'MyVerdana'".

       

      What am I doing wrong? (FYI, switching to url() instead of local() is not an option for me.)

       

      - Kris