Mega Code Archive

 
Categories / Flex / Graphics
 

Set unicode range for font face

<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Style>         @font-face {             src: url("a.ttf");             fontFamily: gothicCentury;             unicodeRange: U+0041-U+007F;         }         @font-face {             src: url("a.ttf");             fontFamily: gothicCentury;             fontWeight: bold;             unicodeRange: U+0041-U+007F;         }         global {             fontFamily: gothicCentury;         }     </mx:Style>     <mx:TextArea text="++ Example Text ++" />     <mx:Button label="Example" /> </mx:Application>