make some fonts warnings quieter

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6226 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2003-02-21 15:02:47 +00:00
parent fbe3862bcd
commit 8926da3807
4 changed files with 16 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2003-02-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* qfont_loader.C (addFontPath): make debug messages quieter
2003-02-21 Angus Leeming <leeming@lyx.org> 2003-02-21 Angus Leeming <leeming@lyx.org>
* FileDialog.C (FileDialog): no need for LyXView *. * FileDialog.C (FileDialog): no need for LyXView *.

View File

@ -47,12 +47,14 @@ void addFontPath()
char ** p = XGetFontPath(w.x11Display(), &n); char ** p = XGetFontPath(w.x11Display(), &n);
if (std::find(p, p + n, dir) != p + n) if (std::find(p, p + n, dir) != p + n)
return; return;
lyxerr << "Adding " << dir << " to the font path.\n"; lyxerr[Debug::FONT] << "Adding " << dir
<< " to the font path." << endl;
string const command = "xset fp+ " + dir; string const command = "xset fp+ " + dir;
Systemcall s; Systemcall s;
if (!s.startscript(Systemcall::Wait, command)) if (!s.startscript(Systemcall::Wait, command))
return; return;
lyxerr << "Unable to add font path.\n"; lyxerr << "Unable to add " << dir << "to the font path."
<< endl;
} }
#endif #endif
} }

View File

@ -1,3 +1,7 @@
2003-02-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* xfont_loader.C (addFontPath): make debug messages quieter
2003-02-21 Angus Leeming <leeming@lyx.org> 2003-02-21 Angus Leeming <leeming@lyx.org>
* FileFialog.C (c-tor): no longer receives a LyXView &, nor passes * FileFialog.C (c-tor): no longer receives a LyXView &, nor passes

View File

@ -142,12 +142,14 @@ bool addFontPath()
char ** p = XGetFontPath(fl_get_display(), &n); char ** p = XGetFontPath(fl_get_display(), &n);
if (std::find(p, p + n, dir) != p + n) if (std::find(p, p + n, dir) != p + n)
return false; return false;
lyxerr << "Adding " << dir << " to the font path.\n"; lyxerr[Debug::FONT] << "Adding " << dir
<< " to the font path." << endl;
string const command = "xset fp+ " + dir; string const command = "xset fp+ " + dir;
Systemcall s; Systemcall s;
if (!s.startscript(Systemcall::Wait, command)) if (!s.startscript(Systemcall::Wait, command))
return true; return true;
lyxerr << "Unable to add font path.\n"; lyxerr << "Unable to add " << dir << "to the font path."
<< endl;
} }
return false; return false;
} }