A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: A slight twist on embedding fonts...

  1. #1
    Senior Member
    Join Date
    Aug 2002
    Location
    Dublin, Ireland
    Posts
    1,749

    A slight twist on embedding fonts...

    Hi,
    I have embedded some fonts in my Flex project and I want to be able to use them with externally loaded SWF files...

    Trouble is, they seem to be hidden from the loaded content which is a bit of a pain.

    Does anybody know of a way to make these outlines available, short of moving to a shared library?

    Cheers,
    G

  2. #2
    FK Newb Beater
    Join Date
    Dec 2002
    Location
    Seattle
    Posts
    676
    I haven't had to deal with this this myself yet but I see it peppered throughout the Flex Framework and it seems to refer to the problem you are having.

    Have a look at the embeddedFontRegistry singleton, the mx_internal::getFontContext() and the protected function createInFontContext();

    The ladder looks like it specifically addresses the issue and allows you to create an object using the moduleFactory of the SWF that owns the embedded font. "Embedded fonts may only be accessed from the SWF file context in which they were created." Interesting...
    Just because you changed the code, doesn't mean it's yours

    Most Recent Work:
    Commercial tanning beds website

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center