Mega Code Archive

 
Categories / Flex / Graphics
 

Embedding a font by specifying a filename

<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"      backgroundColor="0xFFFFFF">     <mx:Style>         @font-face         {             src:url("a.ttf");             fontFamily: localFont;             fontWeight: bold;         }     </mx:Style>     <mx:Button fontFamily="localFont" label="Try Me"/> </mx:Application>