Loading external fonts via [Embed]
Hi all,
I typically embed the fonts in a library and use it this way but sometimes this gives me issues. I'm using Flash Pro CS5 and I'm trying the Embed method.
I've seen many blogs/posts (here, here, here, here, etc in order of which my problems arose) but none of them are working for me. I'm getting the transcode error issue.
Can anyone shed more light on what the Error: Unable to transcode 'some/path/to/a.ttf' transcoding error is? Im sure the path is right, I've tried embedding with and without various options like mimeType, I can't get it to embed the font, or any font for that matter.
Tips on embedding a font? My code would typically look like this:
[Embed(source="dat/SomeFont.ttf", fontFamily="SomeFont", mimeType="application/x-font")]
var SomeFontClass:Class;
var SomeFont:Font = SomeFontClass();
Anything sticking out as wrong there?
Thanks!