It appears that using font.exactMatch() for isAvailable() in qfont_loader.C
does not work properly.
Therefore, the following patch make QT3 use the same code as QT2.
Ok to apply ?
Index: frontends/qt2/qfont_loader.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/qfont_loader.C,v
retrieving revision 1.22
diff -u -p -r1.22 qfont_loader.C
--- frontends/qt2/qfont_loader.C        11 Dec 2002 00:22:37 -0000      1.22
+++ frontends/qt2/qfont_loader.C        11 Dec 2002 21:54:23 -0000
@@ -22,11 +22,8 @@
 #include "BufferView.h"
 #include "qt_helpers.h"
 
-#include <qglobal.h>
 #include <qfontmetrics.h>
-#if QT_VERSION < 300
 #include "support/lstrings.h"
-#endif
 
 #ifdef Q_WS_X11
 #include <qwidget.h>
@@ -146,7 +143,7 @@ bool addFontPath()
 }
 
 bool isAvailable(QFont const & font, LyXFont const & f) {
-#if QT_VERSION >= 300
+#if 0
        return font.exactMatch();
 #else
        string tmp = symbolPattern(f.family());


Reply via email to