namespace lyx {
-extern docstring const stateText(FontInfo const & f);
-
namespace frontend {
/**
GuiFontInfo * & fontinfo_ptr(FontInfo const & f)
{
// The display font and the text font are the same
- size_t const style = (f.style() == LM_ST_DISPLAY) ? LM_ST_TEXT : f.style();
+ size_t const style = (f.style() == DISPLAY_STYLE) ? TEXT_STYLE : f.style();
return fontinfo_[f.family()][f.series()][f.realShape()][f.size()][style];
}
return font;
}
-} // namespace anon
+} // namespace
FontLoader::FontLoader()
switch (f.family()) {
case ROMAN_FAMILY: {
QString family = makeFontName(toqstr(lyxrc.roman_font_name),
- toqstr(lyxrc.roman_font_foundry));
+ toqstr(lyxrc.roman_font_foundry));
font.setFamily(family);
#ifdef Q_OS_MAC
#if QT_VERSION >= 0x040300 //&& QT_VERSION < 0x040800
break;
}
- LYXERR(Debug::FONT, "Font '" << stateText(f)
+ LYXERR(Debug::FONT, "Font '" << f.stateText()
<< "' matched by\n" << font.family());
// Is this an exact match?
return font;
}
-} // anon namespace
+} // namespace
GuiFontInfo::GuiFontInfo(FontInfo const & f)