Hi all,
I downloaded the 3.0.0.477 build from opensource.adobe.com and did a
few simple test cases. The ff mxml failed to compile:
==========================================================
<?xml version="1.0"?>
<!-- fonts/EmbeddedFontFace.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Style>
@font-face {
src: local("Arial");
fontFamily: myFontFamily;
advancedAntiAliasing: true;
}
VBox {
fontFamily: myFontFamily;
}
</mx:Style>
<mx:Panel title="Embedded Font Applied With Type Selector">
<mx:VBox>
<mx:Button label="Click Me"/>
<mx:Label text="Label"/>
<mx:TextArea width="400" height="75" text="The text
uses the myClass class selector."
/>
</mx:VBox>
</mx:Panel>
</mx:Application>
==========================================================
The code is copy-and-paste almost exactly from an example in the
livedocs...I just changed the font from Myriad Pro to Arial.
Compiling the above gives a null pointer exception:
==========================================================
C:\flex3\bin>mxmlc test.mxml
Loading configuration file C:\flex3\frameworks\flex-config.xml
Error: null
java.lang.NullPointerException
at flash.swf.TagEncoder.defineFontAlignZones(TagEncoder.java:1254)
at
flash.swf.tags.DefineFontAlignZones.visit(DefineFontAlignZones.java:2
9)
at flash.swf.MovieEncoder.visitAfter(MovieEncoder.java:259)
at flash.swf.MovieEncoder.define(MovieEncoder.java:240)
at flash.swf.MovieEncoder.export(MovieEncoder.java:116)
at flex2.compiler.API.encode(API.java:4068)
at flex2.tools.Compiler.mxmlc(Compiler.java:270)
at flex2.tools.Compiler.main(Compiler.java:53)
==========================================================
Any idea? Or is there anything I need to set in the compiler to embed
fonts?
Thanks!
Roy