OK, with the below patch, Qt behaves sensibly now.

When there are no font glyphs available, it's all in ERT. When there
are, it's fine. Note that since there's no symbol font, there's no \Surd
... and the wasi is missing too.

Andre, is this patch OK ?

regards
john


Index: mathed/math_factory.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_factory.C,v
retrieving revision 1.69
diff -u -r1.69 math_factory.C
--- mathed/math_factory.C       27 Nov 2002 10:30:27 -0000      1.69
+++ mathed/math_factory.C       18 Dec 2002 03:22:26 -0000
@@ -146,13 +146,17 @@
                if (isFontName(tmp.inset)) {
                        // tmp.inset _is_ the fontname here.
                        // create fallbacks if necessary
+
+                       // symbol font is not available sometimes
+                       string symbol_font = "lyxsymbol";
+
                        if (tmp.extra == "func" || tmp.extra == "funclim" || tmp.extra 
== "special") {
                                lyxerr[Debug::MATHED] << "symbol abuse for " << 
tmp.name << endl;
                                tmp.draw = tmp.name;
                        } else if (math_font_available(tmp.inset)) {
                                lyxerr[Debug::MATHED] << "symbol available for " << 
tmp.name << endl;
                                tmp.draw += char(charid);
-                       } else if (fallbackid) {
+                       } else if (fallbackid && math_font_available(symbol_font)) {
                                if (tmp.inset == "cmex")
                                        tmp.inset  = "lyxsymbol";
                                else

-- 
"ALL television is children's television."
        - Richard Adler 

Reply via email to