On 2010-04-07 16:26-0700 David MacMahon wrote: > > On Apr 7, 2010, at 15:19 , Alan W. Irwin wrote: > >> On 2010-04-07 14:27-0700 David MacMahon wrote: >> >>> FWIW, I think PGPLOT maps the underscore to Hershey symbol 590. >> >> I confirmed that information with >> >> http://www.astro.caltech.edu/~tjp/pgplot/figb2.html >> >> That index position is empty with PLplot so that is the index position I >> will adopt for underscore with PLplot as well.
All these Hershey ascii index upgrades are now done (revision 10893) with ascii code 95 (which should correspond to underscore) mapped to Hershey index 590. > > I don't know much about the Hershey fonts, but I thought that the codes were > predefined so that "590" would always be the same Hershey symbol. Is that > not true? No, The problem is there is no Hershey standard for added characters like this. As far as I can tell by looking at downloads from all over the net, underscore either doesn't appear at all or appears in various locations. > IOW, are the PGPLOT (or PLplot) Hershey codes specific to PGPLOT > (or PLplot) rather than to Hershey fonts in general? I think there is a standard for the original glyphs done by Hershey, but apparently that did not include underscore so various groups added that in various places. > > Here's what I think PGPLOT uses for the underscore's "coordinates"... > > Bounding box... > > miny, baseliney, maxy, minx, maxx = [-16, -9, 12, -9, 10] > > Stroke (in same coordinate frame as bounding box)... > > x1, y1, x2, y2 = [-9, -11, 9, -11] I cannot correlate that information with the Hershey glyph data in fonts/fonts??.c or with any downloaded Hershey glyph data that I could find. Anyhow, I am giving up on putting in a Hershey glyph for underscore myself. Therefore, ascii code 95 for plpoin is blank for our older devices like -dev xwin that still use Hershey glyphs. That will continue indefinitely unless you or somebody else puts Hershey glyph data for underscore into fonts/fonts??.c corresponding to the 590 Hershey index. Note, now that the Hershey ascii code index is straightened out I have to make corresponding changes in the Hershey index ==> unicode index translation tables (including 590). Once those changes are complete our modern Unicode and PostScript devices should have a perfect result for example 6. 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 __________________________ ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel