using support::subst;
using support::addName;
-extern FontInfo lyxRead(Lexer &);
+extern FontInfo lyxRead(Lexer &, FontInfo const & fi = sane_font);
namespace {
string decoration;
string latexname;
string latexparam;
- FontInfo font(defaultfont());
- FontInfo labelfont(defaultfont());
+ FontInfo font = inherit_font;
+ FontInfo labelfont = inherit_font;
ColorCode bgcolor(Color_background);
string preamble;
- bool multipar(false);
- bool passthru(false);
- bool needprotect(false);
- bool keepempty(false);
- bool freespacing(false);
- bool forceltr(false);
+ bool multipar = false;
+ bool passthru = false;
+ bool needprotect = false;
+ bool keepempty = false;
+ bool freespacing = false;
+ bool forceltr = false;
bool getout = false;
while (!getout && lexrc.isOK()) {
latexparam = subst(lexrc.getString(), """, "\"");
break;
case IL_LABELFONT:
- labelfont = lyxRead(lexrc);
- labelfont.realize(defaultfont());
+ labelfont = lyxRead(lexrc, inherit_font);
break;
case IL_FORCELTR:
lexrc.next();
needprotect = lexrc.getBool();
break;
case IL_FONT:
- font = lyxRead(lexrc);
- font.realize(defaultfont());
+ font = lyxRead(lexrc, inherit_font);
// So: define font before labelfont
labelfont = font;
break;