+2002-12-18 John Levon <levon@movementarian.org>
+
+ * qfont_loader.C: symbol should not match "Standard Symbols 1"
+
2002-12-18 John Levon <levon@movementarian.org>
* qfont_loader.C: rewrite for proper maths symbols
QString const family(toqstr(tmp));
lyxerr[Debug::FONT] << "Family " << tmp
- << " isAvailable ?" << endl;
+ << " isAvailable ?";
QFontDatabase db;
// pass false for match-locale: LaTeX fonts
QStringList sl(db.families(false));
for (QStringList::Iterator it = sl.begin(); it != sl.end(); ++it) {
-
// Case-insensitive for Cmmi10 vs. cmmi10
- if ((*it).contains(family, false)) {
+ if ((*it).lower().startsWith(family.lower())) {
lyxerr[Debug::FONT]
<< "found family "
<< fromqstr(*it) << endl;
return true;
}
}
-
+ lyxerr[Debug::FONT] << " no." << endl;
return false;
}
if (!lyxrc.use_gui)
return false;
- bool const is_available(isAvailable(f));
- lyxerr[Debug::FONT] << "font_loader::available returning "
- << is_available << endl;
- return is_available;
+ return isAvailable(f);
}