On 2010-02-23 13:58-0800 David MacMahon wrote: > Hi, Alan, > > On Feb 23, 2010, at 13:07 , Alan W. Irwin wrote: > >> does the example proceed happily for all pages >> but with "0x???]" replacing the glyph that is shown for xcairo? > > Sorry for the vagueness in my report. Yes, this latter description is > exactly what happens. It proceeds happily for all pages but with "0x????]" > or "0x??>" or "0x????????>" or "xxxxxxx/>" displayed instead of the expected > glyphs or styled fonts. > >> If the >> latter, that is expected (also bad unicode results are expected for example >> 24 and the Russian unicode part of example 26). > > Thanks, that's reassuring! For x26c -dev xwin, the Russian text appears > blank rather than as a mis-interpreted escape string. > >> The explanation of that >> latter result is -dev xwin has no unicode capability whatsoever, i.e., it >> only uses Hershey fonts. > > So is the freetype library used for nicer-than-Hershey looking non-unicode > fonts in the xwin dirver?
No. -dev xwin is pure Hershey (just like all our traditional devices). To explain further, we had a first generation of unicode font support via plfreetype.c (e.g., gd.c which is now deprecated because of the limitations of this approach), but now we are relying on external libraries (e.g., the pango/cairo stack of libraries and Qt stack of libraries at our run time and the svg libraries after our run time when the svg file result with embedded unicode strings is displayed) to properly support unicode fonts. The only non-unicode and non-Hershey font we support are the Type 1 fonts for the ps.c device driver, but those are interfaced internally with a unicode to type 1 translation table so the overall ps.c font approach is similar to that done for the svg, cairo, and qt devices, but with the very limited set of glyphs that are available for Type 1 fonts. > > Is there any way to query the driver's unicode capability (or lack thereof)? Yes. softw...@raven> grep dev_unicode drivers/* drivers/aqt.c: pls->dev_unicode = 1; /* wants text as unicode */ drivers/cairo.c: pls->dev_unicode = 1; /* Wants unicode text */ drivers/gcw.c: pls->dev_unicode = TRUE; drivers/gcw.c: pls->dev_unicode = FALSE; drivers/gcw.c: pls->dev_unicode = FALSE; drivers/gd.c: pls->dev_unicode = 1; /* want unicode */ drivers/gd.c: pls->dev_unicode = 1; /* want unicode */ drivers/pdf.c: pls->dev_unicode = 1; /* wants text as unicode */ drivers/ps.c: pls->dev_unicode = 1; /* want unicode */ drivers/pstex.c: pls->dev_unicode = 0; /* don't want unicode */ drivers/psttf.cc: pls->dev_unicode = 1; /* want unicode */ drivers/qt.cpp: pls->dev_unicode = 1; // want unicode drivers/qt.cpp: pls->dev_unicode = 1; // want unicode drivers/qt.cpp: pls->dev_unicode = 1; // want unicode drivers/qt.cpp: pls->dev_unicode = 1; // want unicode drivers/qt.cpp: pls->dev_unicode = 1; // want unicode drivers/svg.c: pls->dev_unicode = 1; /* wants text as unicode */ drivers/wingcc.c: pls->dev_unicode = 1; /* want unicode */ drivers/wxwidgets.cpp: pls->dev_unicode = 1; /* want unicode */ drivers/wxwidgets.cpp: pls->dev_unicode = 1; /* want unicode */ 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