My goal is to have embed Arial fonts in Flex Application. I used both MX and SPARK components:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:s="library://ns.adobe.com/flex/spark"
width="100%" height="100%" >
<mx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@font-face {
src:url("assets/arial.ttf");
fontFamily: Arial;
embedAsCFF: true;
}
</mx:Style>
<s:Button label="Button"/>
<mx:TextArea x="213" y="156" width="264" height="131" fontFamily="Arial"/>
</mx:Application>
Button displays well. But textArea has blank characters. If I change texteArea font To Verdana (not embedded), it works fine !
My question is: How to have embedded fonts for MX and SPARK components in Flex ?
Regards