[osflash] External font loading - No shared libraries
Tenney Julian
Julian.Tenney at nottingham.ac.uk
Mon Jun 4 17:03:08 EDT 2007
If you then load the swf with the fonts ito your main movie, you will find that the fonts are only available to textfields in the loaded movie, not the main movie that loads it. To get around that, you have to do some voodoo. From memory, you need to create at least one textfield in the main movie that uses one of the fonts in the loaded movie, and link to that file when you embed the font. If you don't want to keep rebuilding your main swf, then you need to keep the filename of the linked swf the same each time, or the main movie won't load because it can't find the linked file. (Plesae correct me if I'm wrong - it's from memory and it's late...)
I do that and can use all the fonts in resources.swf from my engine.swf. I have a script that builds resources swf for each piece that uses the engine. I've wanted to do this for ages, but only recently found the answer.
www.nottingham.ac.uk/xerte is the project. It's an authoring tool for rich interactive elearning. It's very similar to Flex, but was born whilst flex was still in its infacy and prohibitively expensive. I use it for all my work.
________________________________
From: osflash-bounces at osflash.org on behalf of Gert-Jan van der Wel
Sent: Mon 04/06/2007 19:57
To: Open Source Flash Mailing List
Subject: Re: [osflash] External font loading - No shared libraries
I think Julian is right, but swfmill makes it a lot easier: http://osflash.org/swfmill#dynamic_shared_font_loading
Gert-Jan
On 6/4/07, Tenney Julian <Julian.Tenney at nottingham.ac.uk> wrote:
Can't be done. You have to build the font into a library, maybe using swfmill as part of your build process. I'd love to be corrected,
Jules
________________________________
From: osflash-bounces at osflash.org on behalf of Daniel Gregório
Sent: Mon 04/06/2007 17:18
To: osflash at osflash.org
Subject: [osflash] External font loading - No shared libraries
Does anybody has an ideia of how to load external fonts in ttf? or something else instead of shared libraries?
thank you very much,
--
Daniel Gregório
Adobe Certified Professional
This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
_______________________________________________
osflash mailing list
osflash at osflash.org
http://osflash.org/mailman/listinfo/osflash_osflash.org
--
Met vriendelijke groet,
Gert-Jan van der Wel | Suite75
This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20070604/be6a09df/attachment.htm
More information about the osflash
mailing list