enhance debug message (see #13087)

This commit is contained in:
Juergen Spitzmueller 2024-08-07 14:45:26 +02:00
parent 473180ec10
commit 90a876a049

View File

@ -155,7 +155,8 @@ static bool isChosenFont(QFont & font, QString const & family,
// positions.
QFontInfo fi(font);
LYXERR_NOPOS(Debug::FONT, "got: " << fi.family());
LYXERR_NOPOS(Debug::FONT, "got: " << fi.family()
<< " (style: " << fi.styleName() << ")");
if (fi.family().contains(family)
&& (style.isEmpty() || fi.styleName().contains(style))) {