I am trying to embed a font in Flex, and the code I use looks the same as in the example, but causes an error. This is the code I wrote:
[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 appropriate definition." I can’t get rid of this. Any ideas?
source
share