3 Replies Latest reply on Jun 29, 2011 10:33 AM by bre_an

    Fonts (Arial) in Flash

    bre_an

      Hi,

       

      I want to use Arial as default font, but when I embed the font it looks a bit different (like a bolder, smaller version of the original Arial).

      My Code:

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application
          xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx">
          <fx:Style>
          <![CDATA[
      @namespace s "library://ns.adobe.com/flex/spark";


      @font-face {
          src: url("Arial.ttf");
          fontFamily: "deffont";
          fontWeight: "normal";
          fontStyle: "normal";
          embedAsCFF: true;
      }

       

      @font-face {
          src: url("Arial.ttf");
          fontFamily: "deffont_no_cff";
          fontWeight: "normal";
          fontStyle: "normal";
          embedAsCFF: false;
      }

       

      s|Label {
          fontFamily: deffont;
      }
          ]]>
          </fx:Style>
          <s:Label id="lbl" text="The quick brown fox jumps over the lazy dog." />
      </s:Application>

       

       

      The result:

      fonttest.png