> I guess advanced anti-aliasing isn't supported in the Open Source SDK? Correct. The JARs that supported advanced anti-aliasing are in the repo, but not their source code, and I don't think the JARs are redistributable. (Matt, is this correct?) Gordon Smith Adobe Flex SDK Team
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Roy J. Tang Sent: Monday, February 25, 2008 11:58 PM To: [email protected] Subject: [flexcoders] Re: Embedded fonts not working in Flex 3? Found the problem. Seems I need to set advanced anti-aliasing to false in the flex-config.xml. Also this problem doesn't seem to be encountered using the Adobe Flex SDK download. I guess advanced anti-aliasing isn't supported in the Open Source SDK? --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Stephen Roy J. Tang" <[EMAIL PROTECTED]> wrote: > > 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 <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 >

