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 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. > I agree we need examples of how to change fonts. Today I will add a page to > example 23 to do this using plsfci, and some pages illustrating how to do > the same thing with the in-string font-changing commands documented in the > above URL. I plan to add a corresponding plsfnt page to the example if you > will kindly implement that API when we come to consensus on it. Thanks. Andrew ------------------------------------------------------------------------- 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