On 2009-08-17 23:31-0400 Hazen Babcock wrote: > Alan W. Irwin wrote: >> >> ./test_superscript_subscript.py -dev xwin -cmap0 cmap0_black_on_white.pal >> >> -dev xwin and -dev svg (when the result is rendered with the the >> ImageMagick >> "display" application) passes this test with flying colours. Also, -dev >> wxwidgets (wxGC) gets the vertical positioning right (although as with many >> other examples, there are horizontal spacing issues with wxwidgets for this >> example). The pdf, qt, and cairo devices do not give correct results for >> this example. I will take responsibility for dealing with this issue for >> the >> pdf and qt devices, and I have asked Hazen off-list whether he would be >> willing to take responsibility for this issue with the cairo devices. > > This should be fixed for the cairo driver in v10273, though you might want to > tune the offsets a little. The only issue that I can see is that the phi > subscript looks unusually low in xcairo vs xwin?
That's a lot better, but I agree there is an issue with the scale of the Greek letter offsets (both superscript and subscript). Can you confirm the driver is currently using the span rise tag before the font change associated with the Greek letter, but not after? If that is the case, would you be willing to implement repeating the current span rise tag after each font change within the string (but before any character is rendered with the new font)? I think that is necessary since a font change potentially changes the scale of the fonts and therefore the interpretation of the span rise tag. Obviously the driver should continue what it is doing with the current span rise tag since there is no guarantee of a font change right after a superscript or subscript. However, I believe that if a repeat span rise tag is also put in after all font changes within a string, that might well fix the Greek-letter superscript/subscript offset issue. 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 __________________________ ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel