Mega Code Archive

 
Categories / Flex / Graphics
 

Apply embedded font inline

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Style>         @font-face {             src:url("a.ttf");             fontFamily: myFontFamily;             flashType: true;           }     </mx:Style>     <mx:Panel title="Embedded Font Applied Inline">         <mx:VBox fontFamily="myFontFamily">             <mx:Button label="Click Me" />             <mx:Label text="Label" />             <mx:TextArea width="400" height="75" text="This text is in Web Pro." />         </mx:VBox>     </mx:Panel> </mx:Application>