0 Replies Latest reply on Nov 9, 2007 2:11 PM by Tom L

    Flash Font Program

    Tom L
      I was working through the Total Training CD and came across this problem. They use the following code to set a font created in Flash within the Flex program. Unfortunately the program gives the following error: " font Poetica Std with normal weight and style not found". In the setup for the CD you install the poetica font to the window/font folder. You then set up the font in Flash and point to it in the following code:
      <mx:Style>
      @font-face
      {
      src: url('embedded_assets/poetica.swf');
      fontFamily: 'Poetica Std';
      }
      </mx:Style>
      The error is on the line src: url('embedded_assets/poetica.swf'); I know the swf file is in the correct folder. The only odd thing I can find is when you get the poetica font in Flash it's Poetica Std, while the font name of the installed font is PoeticaStd (without the space). I'm at a loss, but the error occurs in both the program that came with the CD and the program I wrote.
      Any help would be appreciated.

      Tom

      <mx:Style>
      @font-face
      {
      src: url('embedded_assets/poetica.swf');
      fontFamily: 'Poetica Std';
      }
      .natural
      {
      fontFamily: 'Poetica Std';
      fontSize: 55pt;
      color: #FFFFFF;
      }
      .experiences
      {
      fontFamily: 'Poetica Std';
      fontSize: 55pt;
      color: #FFCC00;
      }
      .welcome
      {
      font-size: 12pt;
      color: #FFFFFF;
      }
      </mx:Style>