How to embed fonts in an AS3 project with CSS
Posted on 2010-11-17
I'm trying to embed a font in my AS3 project but the text keeps disappearing if I set embed-fonts to true. I'm using FlashDevelop and Flex SDK 3 to compile the application.
This is how I am defining the font in the external CSS file:
src: url( "../../resource/font/frutiger.ttf" ) ;
fontFamily: defaultFontFamily ;
advancedAntiAliasing: true ;
font-family: defaultFontFamily ;
font-size: 12 ;
color: #ffffff ;
The styling works, but fonts won't show up. What am I missing here?