6 Replies Latest reply on Nov 23, 2009 1:06 PM by Peter deHaan

    fontface not working... how do you embed new fonts??

    cyber0897 Level 1

      hey guys... like the title suggests... i am having trouble getting the fontface to work... im trying to get the font "DIN" but for some reason it displays a font thats similar to serif...

       

      the code i have for the fontface is...

       

      <fx:Style>
              @namespace s "library://ns.adobe.com/flex/spark";
              @namespace mx "library://ns.adobe.com/flex/halo";

       

              @font-face{
                  src: url("fonts/DINOT-Bold.otf");
                  fontFamily: dinB;
                  fontWeight:bold;
                  embedAsCFF:true;
              }

       

              s|textInput{

                 fontFamily:dinB;

              }


      </fx:Style>

       

       

      if someone could tell me what im doin wrong.. i will greatly appretiate it...