I am using anycharts with flex app. I am trying to embed fonts that 
these charts need. These are swf files. I tried to include these files
in my main.mxml file using
<mx:Style>
        @font-face { src:url
("/src/fonts/anychartfonts/Verdana.swf");  
        fontFamily: "myFont";} 
    
        </mx:Style>

    I am getting 

    Error: font 'myFont' with normal weight and regular style not 
found
    [mxmlc]     @font-face { src:url
("/src/fonts/anychartfonts/Verdana.swf");  
    [mxmlc]  Error: Unable to 
transcode /src/fonts/anychartfonts/Verdana.swf.

    Actually my app does not these fonts. But I need to specify the 
path to fonts in an xml that I generate to display the chart. 
    The chart specific component tries to locate these font swf files 
in my project. I am pasting below the path that I have to give in the 
xml file 
    <fonts use_embed_fonts_only="True" 
default_embed_font="Verdana.swf" path="/src/fonts/anychartfonts" 
path_type="RelativeToSWF" />

    And if I just give the path in the xml without using <mx:Style> I 
get an IO error.

    How can I resolve this issue?
    

Reply via email to