On 2008-03-11 22:12-0000 Andrew Ross wrote: > On Tue, Mar 11, 2008 at 09:32:35AM -0700, Alan Irwin wrote: >> >> For others interested in this thread, the chief reference on our font >> characterization system is >> http://plplot.sourceforge.net/docbook-manual/plplot-html-5.9.0/characters.html#fci >> >> I agree that that higher-level forms of plsfci/plgfic are worth >> implementing., but I think an even more useful API would be three arguments >> in the order font family, style, and weight with a typical call being, e.g., >> >> plsfnt("serif", "italic", "bold"); >> >> etc. If any of those three arguments is the empty string, e.g., >> >> plsfnt("serif", "", ""); >> >> then the corresponding family, style, and/or weight of the font should >> remain unchanged. Similarly, plgfnt should return three character string >> arguments corresponding to the current font family, style, and weight. > > I like this idea. It might be more in keeping with other plplot > functions to use the existing PL_FCI constants rather than strings. > This still gives readable source code and is easier to parse. A negative > value might mean "don't change this".
I like your additional idea to use PL_FCI_SANS, etc., rather than strings. Go for it. > >> I also think it is worth keeping plsfci/plgfci undeprecated since those in >> the know can benefit from those short forms. Similarly, our scheme for >> changing the font in the middle of a string has the >> #<0x8nnnnnnn> form of specifying the entire FCI, the #<0xmn> form for >> changing >> just one attribute of the FCI, and the higher-level #<FCI COMMAND STRING/> >> form as well. > > I agree to kepp plsfci / plgfci. I'd not thought about the inline FCI > strings, but a demo of those would be really useful too. Will do as my next addition to example 23. 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