Style for embedded font
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Style> @font-face{ src:url("a.ttf"); fontFamily:DIN; advancedAntiAliasing: true; } .embeddedFontStyle{ fontFamily:DIN; fontSize:18px; color:#CCCCFF; } .white{ color:#ffffff; } </mx:Style> <mx:VBox backgroundColor="#000000"> <mx:Label text="This is a test" styleName="embeddedFontStyle"/> <mx:TextArea id="ta" width="250" height="150" styleName="white"> <mx:htmlText> <font size="20" family="DIN">Using the new font</font> </mx:htmlText> </mx:TextArea> </mx:VBox> </mx:Application>