Jun 13
Embedding Fonts in Flex
What to watch for
- When embedding the font, the source= line is the path to the font in relation to your project folder. In this case, the font is in the root of the project folder sitting alongside EmbeddingFonts.mxml. That’s why I only had to write ‘MICKEY.ttf’.
- private var mickeyFont:Class; is only there so the compiler will link in the font.
- The ‘fontName’ (‘mickey’) within the embed tag has to be the same as the ‘fontFamily’ within the style tag.
- The name of the style inside the style tags (‘mickeyStyle’) is what you use to reference the style from the ’styleName’ property of your component.
View the EmbeddingFonts.mxml
Download the MICKEY font (originally from dafont.com)
