Currently, qfont_loader::available (qt frontend) is not implemented,
which results a bad behavior when the Type1 math fonts are not available:
since qfont_loader::available( returns always true, mathed thinks
that the fonts are available, and try to use them which gives junk on screen
(for example, when trying to show \alpha).
The attached patch fixes this.
OK to apply ?
Index: ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/ChangeLog,v
retrieving revision 1.237
diff -u -p -r1.237 ChangeLog
--- ChangeLog   9 Oct 2002 08:59:01 -0000       1.237
+++ ChangeLog   12 Oct 2002 14:35:32 -0000
@@ -1,3 +1,7 @@
+2002-10-12  Dekel Tsur  <[EMAIL PROTECTED]>
+
+       * qfont_loader.C (available): Implemented.
+
 2002-10-09  Edwin Leuven <[EMAIL PROTECTED]>
        
        * QDocument.C: Brand new document dialog
Index: qfont_loader.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/qfont_loader.C,v
retrieving revision 1.8
diff -u -p -r1.8 qfont_loader.C
--- qfont_loader.C      24 Sep 2002 13:57:09 -0000      1.8
+++ qfont_loader.C      12 Oct 2002 14:35:32 -0000
@@ -144,8 +144,10 @@ qfont_loader::font_info const * qfont_lo
 }
 
  
-bool qfont_loader::available(LyXFont const &)
+bool qfont_loader::available(LyXFont const & f)
 {
-       // FIXME (see getRawName docs)
-       return true;
+       if (!lyxrc.use_gui)
+               return false;
+
+       return getfontinfo(f)->font.exactMatch();
 }


Reply via email to