>>>> 2- Works with faux bold and faux italic. >>> Excuse my ignorance, but what is a "faux" ? >> Fake Bold or Fake Italic, i.e. when the font itself >> doesn't include any italic or bold versions of the >> letters/glyphs. >Won't the render be ugly ? Like device fontsÂ… No. Faux bold and faux italic are the equivalent of pressing the Bold and Italic buttons for a textfield in the Flash property inspector or applying myTextField.bold or myTextField.italic via actionscript. A lot of fonts do not have special versions of the font specifically for bold versions, italic versions and bold italic versions. So basically, if I take the font Arial (not the device font _sans) in a textfield and use myArialTextField.bold, I'm basically using faux bold. If instead I use Arial Bold which is a separate font, that's real bold.
> No faux fonts in one lib shared font technique. > I wonder in the other btw. Well, from what I can see, using the 1 SWF file per shared font method, Flash only exports the complete font set (or only selected glyphs if you use SWFmill) and not the additional info (with the added file size) to render the font in faux bold, faux italic, or faux bold AND italic. That makes perfect sense. However, it means that you cannot use mySharedFontTextField.bold or mySharedFontTextField.italic when using the 1 SWF file per shared font method (the method developped by Zarate and you). So I guess that using this method, if you wanted a font to display normal and bold, you could only use a font that has a separate version of the font for bold (like Arial and Arial Bold, which are 2 separate font files) and include both fonts in the shared libraries. If you want to use some crazy font you founded on the Internet which has no bold or italic version, then I think there's no way you can make it bold since this method doesn't support "faux" bold or "faux" italic. > The shared lib isn't loaded twice. > You just have to wait for a delay frame, in order to > use it. > That's all. Actually I'm pretty sure it does load twice but I'd be glad to hear that I'm wrong. Let me show you what I mean. Download the zip file found on Zarate's website here : http://www.zarate.tv/articulos/shared_fonts/files/Zarate_Shared_Fonts.zip Unzip the files. There will be a couple of folders that show how to use the 1 SWF file per shared font method but the simplest example is in the folder called "Sencillo". In that folder, open the file index.fla. This file USES the shared library. So now, export (CTRL+ENTER) the file index.fla in the Flash IDE, then make sure you can see the bandwith profiler (View > Bandwidth Profiler) in the Flash debug player, set your download settings (View > Download Settings) to 14.4K so you can really view what's going on and then start the process by clicking on simulate download (View > Simulate Download). Now, closely monitor what's going on in the bandwidth profiler. If you look closely, you'll see that the SWF file that contains the shared font that is being loaded (the file is called "quadaptor.swf") ... well it's actually being loaded twice. The file is only 7K but you can clearly see that the 7K get loaded twice (from 0% to 100% ... two times). So that's why I was king of leaning forward the 2 SWF file per shared font methods used by Ivan and Bernard because even though there are 2 files instead of one by shared font: 1) You have total control over which glyphs are included directly in the Flash IDE without having to use a 3rd party tool like SWFmill. 2) You CAN use faux bold, faux italic and faux bold italic provided that you included them (with the added file size of course). 3) The shared SWF file that gets loaded is only loaded once which is the way it should be. Once again, these are the conclusions I've come to after testing both methods so I would like to hear other's comments on this. If I'm wrong about something here, please let me know. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com