[XForms] fl_set_font_name() verbiage
Mike Heffner
mheffner at vt.edu
Tue May 25 23:58:11 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);
|
How about changing it to M_debug(...)? 'warn' and 'err' essentially always
get printed (a bug for another day).
Thanks,
Mike
--
Mike Heffner <mheffner@[acm.]vt.edu>
<mikeh at FreeBSD.org>
More information about the Xforms
mailing list