On 2009-03-12 16:30-0000 Alban Rochel wrote: > Alan W. Irwin wrote: >> I am not sure how to advise you with regards to example 23. My first guess >> was you were being too specific with the desired font names, but I don't >> spot anything in your code that is too specific that way. For example, >> >> f.setFamily("sans-serif") >> >> seems to use quite generic name which is exactly what you want. More >> likely, there is some way to control font lookup within Qt, and you have to >> set something or configure something to make it look for all "sans-serif" >> possibilities rather than taking, e.g., the first one (which is likely not >> to have all the glyphs you need). > > There is a document on the font selection engine in the Qt documentation, > I'll have a look at it.
Hi Alban: I have solved the glyph selection issue with revision 9731. I found this solution by doing google searches of doc.trolltech.com. It is clear from the documentation there, e.g., http://doc.trolltech.com/4.5/qfont.html#details, that Qt searches primarily for generic font families (Times, Helvetica, Courier) rather than font categories (sans-serif, serif, monotype). Using font family names to actually specify font categories seems illogical to me, but that appears to be the way that Qt likes to do things. I then checked http://doc.trolltech.com/4.5/qfont.html#StyleHint-enum for the generic font family names corresponding to sans-serif, serif, and monotype. When I used those, all the glyph selection issues we had before disappeared! Examples 1 and 6 now have the correct symbols, all the math symbols in example 23 are there, and the CTL glyphs continue to be there with the correct complex text layout with example 24. Although there is still more to do with the unicode fonts (size and position issues that are discussed in another thread), I am really encouraged by the present results showing access to an enormous selection of glyphs rendered beautifully even for CTL languages. My thanks to Werner and you for doing the unicode implementation work for the qt device driver to make this possible. Despite the remaining size and position issues, I encourage everyone here to try the qt devices on all platforms accessible to you. Also, to make this wider testing more convenient, I have decided to turn all qt devices ON by default (revision 9732). 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 __________________________ ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel