Hi List,

I'm using Eclipse and FDT for an AS3 application.
In this application I need to embed fonts.

I search the correct technique in Joey Lott and in tutorial on the web.

So in my class just before the constructor I write that :
[Embed(source="assets/Arial Unicode MS.TTF", fontFamily="EaganFont",
mimeType="application/x-font-truetype")]
private var EAGAN : String;

And when I try to generate the swf eclipse generate this error :
----------
Loading configuration file
D:\work\nurun\environement\eclipse\flex_sdk_3\frameworks\flex-config.xml
Recompile: D:\work\nurun\environement\workspaces\test\fonts\src\Main.as
Reason: The source file wasn't fully compiled.
Files changed: 0 Files affected: 1
D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): Error:
exception during transcoding: Unexpected exception encountered while reading
font file '/D:/work/environement/workspaces/test/fonts/src/assets/Arial
Unicode MS.TTF'

        [Embed(source="assets/Arial Unicode MS.TTF", fontFamily="EaganFont",
mimeType="application/x-font-truetype")]

D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): col: 4:
Error: unable to build font 'EaganFont'

        [Embed(source="assets/Arial Unicode MS.TTF", fontFamily="EaganFont",
mimeType="application/x-font-truetype")]
   ^

D:\work\nurun\environement\workspaces\test\fonts\src\Main.as(14): col: 4:
Error: Unable to transcode assets/Arial Unicode MS.TTF.


   ^

(fcsh)
----------

I've got the same errors if my var is a Class
private var EAGAN : Class;


Anyone had the solution of my problem ?


Thank you.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to