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
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/