Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Font embed error in Flex

I'm trying to embed a font in Flex and the code I'm using looks the same as the example, but throws an error. This is the code I've written:

[Embed(source="data/posca_mad_thrasherz/posca_mad_thrasherz.ttf",
    fontName = "fontGraffiti",
    fontWeight = "bold",
    mimeType="application/x-font")];
private var funFont:Class;

But I get the error, "Metadata requires an associated definition." I can't seem to get rid of it. Any ideas?

like image 518
staypuffinpc Avatar asked Dec 02 '25 19:12

staypuffinpc


1 Answers

Get rid of the semicolon at the end of your Embed statement: http://www.flash-db.com/Board/index.php?topic=17500.0;wap2

like image 137
Michael Todd Avatar answered Dec 04 '25 13:12

Michael Todd



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!