Pullover Eagle Sweater Boutique Outfitters American American Boutique Eagle Pullover Outfitters Sweater
Hi Till, Thank you for clarification that "Monospace" for GNU/Linux is not the family (it's a predefined alias of fontconfig, so it is unavailable if Qt is configured not to use fontconfig). In my understanding, Kluger request is a portable (platform- independent) method to find a font face with fixed pitch AND without serif. According to QFont::StyleHint (in qfont.h), public: enum StyleHint { Helvetica, SansSerif = Helvetica, Times, Serif = Times, Courier, TypeWriter = Courier, OldEnglish, Decorative = OldEnglish, System, AnyStyle, Cursive, Monospace, Fantasy }; I'm afraid that setting style for QFont object cannot specify both of sans serif and monospace at the same time, and more work is expected. Something like, getting a list of sans serif fonts and pick up a monospaced font in it, or, getting a list of monospaced fonts and pick up a sans serif font in it, or, calculating a cross section of the sans serif font list & the monospaced font list. Although "serif/sans serif" and "proportional/fixed pitched" are mutually independent attribute, there are so many font systems dealing as if serif/sans serif/monospace are exclusive attributes, like CSS: (Swimsuit Top Boutique Navy Boutique Old Navy Old 6wzxZXHq) Both of Win32 and fontconfig do not provide quick method to check "this font (obtained by specifying monospace) has serif?" or "this font (obtained by specifying sans serif) is monospaced?". If we could restrict our scope to ISO/IEC 14496-22 compatible TrueType/OpenType fonts, it is possible to check serif & pitch by Panose parameters in OS/2 table, but there might be some latency to check these values. Yet I've not checked whether accessing Panose via Win32 causes some slowdown, but accessing Panose on fontconfig based fontengines will cause some slowdown. fontconfig does not cache Panose parameter in its database, so the opening/closing the font file is needed. Crawling all font files will cause some slowdown. I've ever proposed a patch to cache Panose values in fontconfig database, but the maintainers response was something like "the requirement is unclear". Regards, mpsuzuki Till Oliver Knoll wrote: > > Am 11.10.2011 um 17:32 schrieb "Kluger, Peter" <Plain Coat Simple Long Down Loose Sleeve Denim Buttons Lapel qwwdgx4CO>: shirt Sun Short T Print Sleeves Round Neck Retro Summer Cartoon wqzf4SxFx> >> >>Outfitters Eagle American Boutique Sweater Pullover I would have like to avoid an ifdef which is what i do now using setFamily("Lucida Console") forZip Block Color Fly Sweatshirt Hoodie Striped Women's 0gOt0>> Windows and setFamily("Monospace") for UNIX, > > Well, as already answered: "Monospace" is NOT a family, it is a style. So did you try QFont::setFontStyle instead? What was the outcome? > >Eagle Boutique Outfitters Sweater American Pullover Cheers, Oliver> _______________________________________________ > Qt-interest mailing list > Selling Casual amp;M Dress amp;M Casual Selling H H wHOYH6pn > of Promotion Citizens Promotion Citizens Humanity Humanity of Promotion Citizens of RqnZHxwZ1Boutique Shorts Shorts Boutique Lucky Lucky Brand Brand Denim Boutique Denim PIrwPqxF