From 8f217402f9dbc244d1e304b21830cd78701d44fc Mon Sep 17 00:00:00 2001 From: John Levon Date: Wed, 18 Dec 2002 22:15:59 +0000 Subject: [PATCH] don't assume symbol font is available, ok'd by Andre git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5866 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 4 ++++ src/mathed/math_factory.C | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index dc61341945..ac4f78058e 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,7 @@ +2002-12-18 John Levon + + * math_factory.C: do not assume symbol font is present + 2002-12-17 Dekel Tsur * math_parser.C (tokenize): Fix macro reading. diff --git a/src/mathed/math_factory.C b/src/mathed/math_factory.C index 1a124d0884..083ed374ef 100644 --- a/src/mathed/math_factory.C +++ b/src/mathed/math_factory.C @@ -146,13 +146,17 @@ void initSymbols() 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