Mega Code Archive

 
Categories / Flex / Graphics
 

Point to defined ranges with unicodeRange attribute of @font-face declaration

<?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;         unicodeRange: "englishRange";     }     TextArea {         fontFamily: myFontFamily;         fontSize: 32;     }     </mx:Style>     <mx:Panel title="Embedded Font Character Range">     <mx:TextArea         width="400"         height="150"         text="The Text Uses Only Some of Available Characters 0 1 2 3 4 5 6 7 8 9."/>     </mx:Panel> </mx:Application>