Mega Code Archive

 
Categories / Flex / Graphics
 

Setting ranges in font-face declarations

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Style>     @namespace mx "http://www.adobe.com/2006/mxml";     @font-face {         src:url("a.ttf");         fontFamily: myFontFamily;         flashType: true;         unicodeRange: U+0041-U+005A, /* Upper-Case [A..Z] */                       U+0061-U+007A, /* Lower-Case a-z */                       U+0030-U+0039, /* Numbers [0..9] */                       U+002E-U+002E; /* Period [.] */     }     mx|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>