[XForms] fl_set_font_name() verbiage
Mike Heffner
mheffner at vt.edu
Wed May 5 18:12:15 EDT 2004
On 05-May-2004 Angus Leeming wrote:
| On Thursday 15 January 2004 5:30 am, Mike Heffner wrote:
|> When fl_set_font_name() fails it will return -1 but it also prints:
|>
|> In SetFont [fonts.c 246] Bad FontStyle request -1: blahblahblah
|>
|> This function is typically used as a method of testing whether a
|> font is loadable or not, so it's not always a fatal condition. Can
|> this print statement be wrapped in a debug-only conditional?
|
| Mike does this do the job:
| - M_err("SetFont", "Bad FontStyle request %d: %s", numb,
| flf->fname);
| + M_warn("SetFont", "Bad FontStyle request %d: %s", numb,
| flf->fname);
|
| of are you actually looking for something like this:
|#if (FL_DEBUG >= ML_DEBUG)
| M_debug("SetFont", "Bad FontStyle request %d: %s", numb,
| flf->fname);
|#endif
|
Whichever would prevent it from being displayed if libforms is not
compiled in debug mode. When is M_warn() printed?
Mike
--
Mike Heffner <mheffner@[acm.]vt.edu>
<mikeh at FreeBSD.org>
More information about the Xforms
mailing list