6 Replies Latest reply on Nov 9, 2010 2:59 PM by Flex harUI

    Flex and embedded fonts

    Dave 81

      Hi everyone, I have an application that embeds some fonts with an XML configuration file:

       

      <?xml version="1.0" encoding="utf-8"?>
      <flex-config>
           <compiler>
               <fonts>
                   <local-font-paths>
                       <path-element>C:/windows/Fonts/Arial</path-element>
                   </local-font-paths>
               </fonts>
           </compiler>
      </flex-config>

       

       

      I use these fonts with a css like this:

       

      @font-face
      {
           fontFamily: arialEmbeddedFont;         
           src: local("Arial");
           embed-as-cff:true;
      }

       

      .teamName
      {
           color:#FFFFFF;
           font-size:10px;
           horizontal-align:center;
           text-align:center;
           font-family:arialEmbeddedFont;
      }

       

       

      My application shows a popup window  when there's a specific event (like a new friends connected in nomal  chat softwares). When I try to raise an event with this popup window, I  get this error:


      TypeError: Error #1034: Type Coercion failed: cannot convert  mx.managers::WindowedSystemManager@8e04971 to  flashx.textLayout.compose.ISWFContext.

       

      I searched on  the net but I found only another programmer with the same problem and,  unfortunately, no solutions... can somebody help me?

      Thanks!

       

      Davide