This patch makes KDE dependent on Qt using core X fonts; I've a server that has only two core X fonts (fixed and cursor) but Qt provides over 4000 TrueType and Type1 scalable faces via Xft in my environment. Is there a problem in Qt that requires this change? Can we get a fix into Qt instead? keithp@keithp.com XFree86 Core Team SuSE, Inc. RCS file: /home/kde/kdelibs/kdeui/kfontdialog.cpp,v retrieving revision 1.59 diff -u -b -r1.59 kfontdialog.cpp --- kdeui/kfontdialog.cpp 2001/01/31 19:15:20 1.59 +++ kdeui/kfontdialog.cpp 2001/02/05 17:15:26 @@ -409,6 +409,23 @@ if (fixed) { QStringList lstFixed; + +#if QT_VERSION >= 224 + // the font dialog shouldn't open every font on the system just to get a list of + // fixed point fonts + const char *pattern = "-*-*-*-*-*-*-*-*-*-*-*-*-*-*"; + int fontcount = 0; + char **fontlist = XListFonts(qt_xdisplay(), pattern, 32768, &fontcount); + + QFont font; + if (fontlist) { + for (int i = 0; i < fontcount; i++) { + font.setRawName(fontlist[i]); + if (font.fixedPitch() && ! lstFixed.contains(font.family())) + lstFixed.append(font.family()); + } + } +#else for (QStringList::Iterator it = lstSys.begin(); it != lstSys.end(); ++it) { // To get the fixed with info (known as fixed pitch in Qt), we @@ -421,6 +438,7 @@