I did a few tests with LaTeX fonts and the latest PyX (0.8.1, on OS X 10.4.3 with teTeX 3.0). The proximate reason for this test was that the size of generated eps files was very large when I used my own font package in PyX font rendering.
The test file I used is a small one (appended below and also available in the link). What I changed from test to test was the "fontpackage"; I tried helvet.sty, mathptmx.sty, palatino.sty, and times.sty (all from the teTeX distribution). Mathptmx made the smallest eps (9k); the others all made 50-60k eps files. This seems reasonable. However, when I use Adobe Minion with a style package I wrote (minion.sty: http://www.ece.ucdavis.edu/~jowens/code/otftex_install/ ) the file size balloons to 500k. This seems pretty high for a eps that uses all of 4 characters. I realize it's my own style file but I believe I've built in the right way - it uses OpenType fonts as its basis (using Eddie Kohler's LCDF TypeTools, and the style file is derived from Philipp Lehman's Font Installation Guide (fontinst). I'm happy to help reproduce - mostly what I think needs to be done is looking at what's embedded in the eps for fp-minion.eps and figure out how what's extraneous. It appears to be embedding an entire .pfb? The source .pfb is 256k. Is that all necessary? movenpick 541$ ls -l type1/adobe/Minion/MinionPro-Regular* -rw-r--r-- 1 jowens jowens 256158 Nov 7 16:51 type1/adobe/Minion/MinionPro-Regular.pfb -rw-r--r-- 1 jowens jowens 7752 Nov 7 16:51 type1/adobe/Minion/MinionPro-RegularLCDFJ.pfb I note that in a small LaTeX test using the minion style file (also included in the following link), the .ps (made using dvips) is 29k and presumably does not include the entire font file. All files: http://tinyurl.com/dehmr JDO ========= #!/usr/bin/env python from pyx import * text.set(mode="latex") text.preamble(r"\usepackage{fontpackage}") name = 'fp' data = [ [1,2], [3,4], [5,6] ] g = graph.graphxy(width=10, key=graph.key.key(pos="tl"), x=graph.axis.linear(title="X"), y=graph.axis.linear(title="Y")) g.plot(graph.data.list(data, x=1, y=2, title="%s" % name)) g.finish() g.writeEPSfile('%s.eps' % name) ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ PyX-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-user
