On 2010-04-05 14:18-0700 David MacMahon wrote: > Example 6 on the PLplot website shows centered dots for codes 92 and > 95 rather than the expected backslash ('\') and underscore ('_'). > Code 94 shows as a degree symbol rather than a circumflex ('^'), but > at least that matches PGPLOT (see http://www.astro.caltech.edu/~tjp/ > pgplot/hershey.html). > > FWIW, the docs for plpoin say "If code is between 32 and 127, the > symbol is simply the corresponding printable ASCII character in the > default font."
Hi Dave: Thanks, for your good issue-spotting abilities. The issue is that our Hershey fonts don't have correct glyphs for this region (see the results of examples/x06c -dev xwin), and we simply propagated that error (displayed in example 7 for -dev xwin) to our PostScript and TT fonts translation tables. I have partially fixed this issue locally, but I am still searching for one stubborn glyph and trying to correlate what is output in example 7 (which we use to check changes to fonts/plhershey-unicode.csv which controls the translation of Hershey index to unicode) and what is output in example 6. Talk about many obfuscating levels of translation! That code is a nest of snakes. I will commit when done and the result should look good for our TTF devices (e.g., all our cairo and qt devices) and our PostScript devices. After that commit, the Hershey font error will remain for our devices that still use Hershey fonts. I don't care since I don't use such devices any more for critical work. If you do care, I will be happy to accept your patch. Our Hershey fonts can be regenerated from the code in the fonts subdirectory if you specify the -DBUILD_HERSHEY_FONTS=ON option. However, you would have to figure out the format contained in the various *.c files and fix the drawing data corresponding to codes 92, 94, and 95. 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