mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
small tweak
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5849 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
539ce478e0
commit
0694c27764
@ -1,3 +1,7 @@
|
||||
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
|
||||
|
@ -176,7 +176,7 @@ bool isAvailable(LyXFont const & f)
|
||||
QString const family(toqstr(tmp));
|
||||
|
||||
lyxerr[Debug::FONT] << "Family " << tmp
|
||||
<< " isAvailable ?" << endl;
|
||||
<< " isAvailable ?";
|
||||
|
||||
QFontDatabase db;
|
||||
// pass false for match-locale: LaTeX fonts
|
||||
@ -185,16 +185,15 @@ bool isAvailable(LyXFont const & f)
|
||||
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;
|
||||
}
|
||||
|
||||
@ -357,8 +356,5 @@ bool qfont_loader::available(LyXFont const & f)
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user