2 Replies Latest reply on Feb 8, 2010 12:18 AM by TheWuzziWizz

    Using embedded fonts from loaded swf

    vivoices Level 1

      I am loading a swf file including emedded fonts, created in Flash CS4, at runtime into a FB4 Beta2 project.

      I would like to use the embedded fonts from the loaded swf in the main application.

       

      Can someone point me in the right direction?

       

       

      Thanks,

      David

        • 1. Re: Using embedded fonts from loaded swf
          Flex harUI Adobe Employee

          If the CS4 swf calls Font.registerFont, it should work.

          • 2. Re: Using embedded fonts from loaded swf
            TheWuzziWizz Level 1

            You may also want to look at the various embedded font format issues. Many of the Flex 4 components use a newer embedded font fortmat, which is not the same as the one generally used in Flash. So even if ther Flash font gets registered properly, it still may not work with some of the spark components.

             

            You should be able to create a swf using Flex that contains fonts embedded in either format, which can then be used in the way you describe, though, since Flex 4 suports both font formats.

             

            Hopefully, someone else will jump in here if I got some of this wrong.

             

            -JM