From: Alan W. I. <ir...@be...> - 2006-09-16 02:06:17
|
On 2006-09-15 21:20+0200 Werner Smekal wrote: > I think I took this from the gd driver. text=1 adds freetype support and > smooth=1 adds antializing support for the font. So if text=1 not the hershey > fonts are used, freefont is used instead. You can test it with example 24. > [Alan said] >> The equivalent result (good looking fonts but >> jagged plot lines) is rendered much quicker for other device drivers with >> access to non-Hershey fonts (which is why text=1 is default for them). > > Which driver is this? The gd device driver. text=1,smooth=1 is the default. See static int freetype=1; static int smooth_text=1; in gd.c. To give you a timing example on that 600MHz Ubuntu box: software@starling> time c/x01c -dev png -o test.png PLplot library version: 5.6.1 real 0m0.302s user 0m0.232s sys 0m0.024s The resulting characters in test.png look good, i.e., they use the freetype fonts and are smoothed as you would expect from the gd.c defaults. Of course, wxwidgets will have some latency just to display the blank interactive screen, but you can judge by eye how long it takes the actual plot to be displayed once that blank screen is complete, and currently that example 1 display time is roughly 5 seconds with -dev wxwidgets on my 600MHz box. > But freetype with wxwidgets driver is especially very slow, since > every point (freetype uses DrawPixel) is one drawing operation. So every 100 > points the screen is refreshed. I'll change that, that doesn't make sense. I am glad to hear you can improve the efficiency so easily. Once you are satisfied with the speed of text=1,smooth=1, you will probably want to follow gd.c and make that combination the default rather than text=0,smooth=0. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |