Hi Alex, Well, got my scaled down test case, but it is working fine as you said. I don't need to anything special to have my modules inherit the embedded fonts in Label's LinkButtons ect...
I must be doing something funny and I will continue and try and find where...and hope to post back next week with my findings. Thanks, have a great weekend! Greg On Fri, May 15, 2009 at 1:14 PM, Alex Harui <[email protected]> wrote: > > > Well, glad that worked, but it shouldn't be necessary for LinkButton. If you > can post a test case in two 20-line mxml files I'll try to take a look. > > Alex Harui > Flex SDK Developer > Adobe Systems Inc. > Blog: http://blogs.adobe.com/aharui > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of Greg Hess > Sent: Friday, May 15, 2009 8:46 AM > To: [email protected] > Subject: Re: [flexcoders] Confused about modules using embedded fonts Flex > 3.3 > > Thanks Alex! > > Not exactly sure why I don't get ANY "automatic" behavior even with > base Flex controls(LinkButton ect..) but by assigning the main > applications SystemManager(IFlexModuleFactory) that has the registered > fonts to the loaded modules moduleFactory it is working like a charm. > > Wow, one line of code fixed it. > > Once my module is loaded I set the modules moduleFactory property like this: > > private function onModuleLoaded( event:ModuleEvent ):void > { > ... > module.moduleFactory = Application.appliation.systemManager; > > } > > Is this what you meant and is this the right approach? > > Cheers, > > Greg > > On Thu, May 14, 2009 at 7:29 PM, Alex Harui <[email protected]> wrote: >> >> >> The key is that there must be code in the same SWF as the font that >> generates the class that will display the text (which might be from the >> module). This should be automatic for any Flex control, but if you're >> using >> itemrenderers and/or classFactories you'll probably need to use >> ContextualClassFactory instead. >> >> >> >> Alex Harui >> >> Flex SDK Developer >> >> Adobe Systems Inc. >> >> Blog: http://blogs.adobe.com/aharui >> >> >> >> From: [email protected] [mailto:[email protected]] On >> Behalf Of Greg Hess >> Sent: Thursday, May 14, 2009 11:02 AM >> To: [email protected] >> Subject: [flexcoders] Confused about modules using embedded fonts Flex 3.3 >> >> >> >> >> Hi Folks, >> >> I have a modular application built on Flex 3.3 SDK and have just >> introduced some embedded fonts and unfortunately all text is blank in >> the modules that attempt to use the embedded font. Popup windows >> displayed from my module shell(main application) work fine. Searching >> the archive and web I have found much discussion in relation to >> ActionScript 2 but not much regarding Flex 3 other than this adobe >> bug(3.2 sdk) http://bugs.adobe.com/jira/browse/SDK-18254 that has the >> same result (blank text), but in my testing my modules call to >> Font.enumerateFonts(false); does return my list of embedded fonts so I >> don't think the work around to register the fonts will help. >> >> Does anyone know how to allow a module to use fonts embedded in the >> main application in Flex 3.3? >> >> Do I have to register the embedded font when initializing each module? >> >> If my fonts are listed in Font.enumerateFonts(false) does that mean >> registration is already complete? >> >> Any help is much appreciated! >> >> Greg >> >> > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links > >

