[XForms] fl_set_font_name() verbiage
Angus Leeming
angus.leeming at btopenworld.com
Wed May 5 10:01:01 EDT 2004
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
Angus
More information about the Xforms
mailing list