An initial revision of TTF font subsetting has been committed to SVN. It seems to work for all tests run by backend_driver.py (with the exception quiver_demo, which didn't seem to work without my changes either).
Some key results: fonts_demo_kq_ps.py: 633518 -> 45232 mathtext_demo.py: 366268 -> 34932 unicode_demo.py: 92713 -> 27281 Over all the backend_driver demos, the size goes from 44,428,655 to 35,925,889. The original ttconv code has been modified to be exception safe, since its error handling as a commandline app was to just quit the process. The easiest way to do this was to use C++ exceptions and add some destructors to various objects. It makes for a strange mix of C and C++, which hopefully isn't too offensive. I was more concerned with making the minimum number of changes to make it work in the new environment, rather than making stylistic ones for the sake of cleanliness etc. ttconv supports outputting a Type 42 font (without subsetting), so matplotlib's old Type 42 output has been replaced with ttconv's. An rc value (ps.fonttype) can be used to select Type 3 or Type 42 output. This will probably go away (with Type 3 as the only option) in the future, but I thought I'd leave it in for testing purposes for now. (I have been unable to test tex_unicode_demo.py, as my TeX installation doesn't seem to have all the necessary stuff (ucs.py) and installing that without root access is proving to be difficult... I suspect my changes will not affect this demo anyway, since use_tex uses a different method to embed the glyph outlines in the file.) Please kick the tires and let me know how it goes, Mike ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel