On 2009-01-22 14:31+0100 hans.rijn...@shell.com wrote: > Sorry to bother you all again, but I have problems in plotting a string containing the "_" (underscore) character using the xwin driver on Linux and the WxWidgets on Vista 64. I also used the extended fonts, but all 4 fonts fail to plot it.
> [...] Is there a way to get the xwin driver on Linux also plot the "_" ? Hi Hans: I confirm an underscore issue on Linux. Thanks for reporting this issue. Here is what I found. For -dev xwin; -dev psc -drvopt text=0; -dev png -drvopt text=0; and -dev wxwidgets -drvopt freetype=0 the underscore is replaced by a (very) short dash. All those cases involve our traditional Hershey fonts. From this evidence I believe there is something fundamentally wrong with those fonts for the underscore character. One possibility was that our binary form of Hershey fonts somehow got clobbered in the underscore position accidentally in our CVS days, in the CVS to svn transition, or during the svn era since. However, that turns out not to be the case. I just (revision 9370) tweaked our build system to optionally (by default this is turned OFF) build programmes to generate the binary form of our Hershey fonts. (This was an interesting historical exercise. I consulted the plplot-5.0.0 build directions [from our build system from three generations ago!] to help figure out how to build those programmes.) See fonts/README for directions on how to use our build system to build the programmes to generate our Hershey fonts). When I ran those programmes, the results were absolutely identical with data/plstnd5.fnt and data/plxtnd5.fnt that were generated more than 8 years ago. Another possibility is the directions for creating the Hershey underscore glyph are just plain wrong. (It could be missing as well, but then I don't think you would be seeing the short dash.) I had a look at the code in the fonts subdirectory that generates the Hershey fonts, and it is essentially undocumented. Therefore, it is going to take some effort to figure out, for example, the correspondence between any given glyph (such as underscore), and the data (pen positions I assume for drawing the glyph) that is given in the source code. I don't have time for such an effort (especially because our Hershey fonts are gradually being replaced by TrueType or Type 1 fonts for most of our devices). However, if somebody wants to make the effort to figure out the Hershey underscore problem, I would be happy to apply the fix. 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: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Plplot-general mailing list Plplot-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-general