[XForms] fl_set_font_name() verbiage

Angus Leeming angus.leeming at btopenworld.com
Fri Jun 4 12:16:54 EDT 2004


On Wednesday 26 May 2004 4:58 am, Mike Heffner wrote:
> 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).

I set it to M_info, which is just below the default threshold for 
printing.

Angus




More information about the Xforms mailing list