On 2008-03-12 12:24-0000 Andrew Ross wrote: > On Tue, Mar 11, 2008 at 05:26:49PM -0700, Alan Irwin wrote: >> [...]I like your additional idea to use PL_FCI_SANS, etc., rather than >> strings. >> Go for it. > > It is now implemented - there are new plsfont and plgfont functions > which provide a more user friendly front end to plsfci / plgfci. [...]
> Alan, if you are happy with this then perhaps you could add examples of > their use into example 23. Done. In fact, I believe am done with all example 23 changes including one page that uses the new plsfont plus additional pages that illustrate how to change fonts in mid-string with various unicode escape sequences. The end result looks pretty boring, but it gets the job of comprehensive testing done. For example, I found and fixed a minor bug in plsfont due to this test. Also I inadvertently discovered how non-robust the current version of text2num is during the course of these tests. (I am currently discussing that case off-list with Andrew.) Finally, comparisons of -dev psc, -dev pscairo, and -dev psttfc results show mid-string font-changing is not implemented correctly for -dev psttfc. The psttfc results are consistent with the mental model that the whole string is searched for font-changing commands, those font changes are done, then the string is rendered. That logic is not correct. Instead, psttfc should change fonts right wherever the FCI appears in the string. I don't know how this psttfc issue escaped our notice before, except we didn't have boring parts of example 23 to do such detailed comparisons until now. BTW, I have something else PLplot-related (improved Ada language detection in CMake that will be donated to CMake) on my plate at the moment so I would appreciate volunteers to propagate the recent additions to example 23 to the other language interfaces. 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 libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel