Skip navigation
Currently Being Moderated

How to access the EmbeddedFontRegistry in actionscript only code?

Apr 11, 2009 12:49 PM



My name is Zach and I am trying to push outside of the flex framework, but keep the advantages of RSL's.  I created my own Component/Data Library where all UI objects inherits directly from Sprite.  However, when I moved this out of the Flex environment into, what I am calling, 'the pure actionscript' envinronment my RSL's no longer loaded-- when I compiled, so for the past 6 months I have just been compiling them internally.  I finally had time to do some hunting and discovered the FlexModuleBootstrap, SimpleApplication and all of the fun undocumented things that go along with that and I have the RSL's loading, but now I am running into an error with my fonts:


Error: No class registered for interface 'mx.core::IEmbeddedFontRegistry'.

                at mx.core::Singleton$/getInstance()

                at mx.core::EmbeddedFontRegistry$/registerFonts()

                at _eThorityFW_mx_core_FlexModuleFactory/RSLRootCompleteListener()


So I have been looking into this and the classes EmbeddedFontRegistry along with IEmbeddedFontRegistry are undocumented and Excluded from the framwork.swc and I'm stuck figuring out how to register my fonts outside of the Flex environment.  I have a single class called EmbeddedFonts which has the 6 embedded fonts in it and nothing else.  My guess is that I need a [frame(factoryclass=???)] metatag for this so it effectively adds the Fonts to the EmbeddedFontRegistry, but I am swimming in too much information right now.  If anyone out there has done this or has an idea of what I am to do I would be very grateful.





  • Currently Being Moderated
    Apr 11, 2009 1:40 PM   in reply to woodmanzee

    The value of the Flex framework (or any framework) is that it has feature built-in so you don't have to do a bunch of work on your own.  I'll be interested when you're done if it was worth rolling your own.


    The Flex embedded font subsystem is very flexible, designed to handle colliding font subsets in different modules.  Unless you need that, just call Font.registerFont on your font classes.


    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc.


    Mark as:
  • Currently Being Moderated
    Apr 11, 2009 1:41 PM   in reply to woodmanzee
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points