> I'm working on this project that has a shared library with some > movieclips and fonts... > It are those fonts that cause quite a bit of stress... > > The designer on this project is on a PC and I work on a Mac... Not > that that should matter but I'm taking a wild guess this is the > problem... > > The situation... Both his PC and my Mac have all the fonts... Same > TTF files. However, if I use the shared fonts in the swf on the > server, they come out looking like this: http://webkitchen.be/ > downloads/sharedfonts.png > Not really what was intended...
It looks like you're dealing with the same problem I've been struggling with recently. It's all about code pages. Windows and Macs have different ways of translating text info into characters. The lower-end characters (those in the ASCII range from 0-127) are the same. The higher end ones (in the ANSI range 128-255) are different. You can see them in these tables: http://en.wikipedia.org/wiki/Mac_OS_Roman, http://en.wikipedia.org/wiki/Windows-1252 (These are for English-language OS's; for other languages the encodings are different again). There are a number of ways to deal with this. One is simply to switch to Unicode. Unicode is cross-platform and will work in any language. If you can't use Unicode for some reason, you have two options: either create two fonts, one for the Mac and one for Windows (possibly more if you need to deal with multiple regions), or do what I did, which is to run a translation function to change your text from one code page to the other (eg, running myText.split(String.fromCharCode(128)).join(String.fromCharCode(219)) will swap a Windows Euro symbol with a Mac Euro symbol). This isn't going to solve your problem in a general sense, and it will only work for those characters that are represented in both code pages, but if you have some control over which characters you will be using, it will do the job. Best Danny _______________________________________________ [email protected] 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

