Remove redundant font loader code

Setting the family to "family" is already attempted above. A
different case was adapted to be this duplicate case at d4ff3a29,
but it should have just been removed.

Spotted by Enrico.
This commit is contained in:
Scott Kostyshak 2020-03-20 09:12:47 -04:00
parent d255339a4c
commit f8e40f8ab8

View File

@ -203,15 +203,6 @@ QFont symbolFont(QString const & family, bool * ok)
return font; return font;
} }
LYXERR(Debug::FONT, "Trying " << family << " ... ");
font.setFamily(family);
if (isChosenFont(font, family, QString())) {
LYXERR(Debug::FONT, "raw version!");
*ok = true;
return font;
}
LYXERR(Debug::FONT, " FAILED :-("); LYXERR(Debug::FONT, " FAILED :-(");
*ok = false; *ok = false;
return font; return font;