Here is a great news for AlivePDF, I am currently considering using Alchemy to handle all the fonts parsing (TrueType/OpenType) through a c lib called TTF2PT1. This is the cool thing with Alchemy, any c or c++ lib can be compiled to AVM2 bytecode and used in the Flash Player. If you know the TTF2PT1 lib, it handles all the font parsing that AlivePDF is almost doing. The cool thing is that this lib is fully working and the extraction of glyph widths is perfect and AlivePDF will benefit from that.
If you guys remember the current problem we have in AlivePDF when embedding fonts, glyphs may overlap and be incorrectly positioned, this lib will fix all that and handle even complex fonts. The cool thing is that thanks to Alchemy, this c lib will run and do all its work in the Flash Player and smoothly interact with the AlivePDF core engine.
Such a decision could mean that the final release of AlivePDF with complete and fully working font embedding support will be Flash Player 10 only, as Alchemy is Flash Player 10 only. I know you guys may be against that, so the font embedding logic will be given as a seperated SWC than you can link as an extension of AlivePDF so that the core PDF engine from AlivePDF stays fully compatible with Flash Player 9.
So now, let's see a demo, if you download TTF2PT1 and ask to generate the .AFM file for a font with the following command (-a MyFont.ttf) you'll end up with an AFM file (Adobe Font Metrics) which is gold for AlivePDF cause it gives all the informations needed for embedding a font in a PDF.
Click anywhere in the SWF below, the C lib will be called to extract the font characteristics (from a MyriadWebPro.ttf file) and produce an nice AFM file :
A Flash animation should have appeared here, but it seems that your browser has an older version of the Flash Player or it is not installed at all. Please, install the
last release of the Flash Player now, then reload this page.
Ok, I admit it, nothing really exciting but believe me, it's a huge step for AlivePDF!