[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wsfont
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: wsfont
- From: Gabucino <gabucino_(_at_)_mplayerhq_(_dot_)_hu>
- Date: Wed, 16 Jun 2004 10:08:00 +0200
Chuck Yerkes wrote:
> There are GOOD ways to ask questions and BAD ways. You've chosen the latter
> path. Which mostly tends to get people pissed off at you.
I asked that way because I expected the answer to be "Yes, it's unused, and
probably not working." Since it pretty much seems so. And in case the answer
is different, I can proceed with elaborating my situation.
Check the following snippet:
wsfont_init();
cookie = wsfont_find(NULL, 12, 22, 0);
if (cookie == -1)
cookie = wsfont_find(NULL, 8, 0, 0);
if (cookie == -1)
cookie = wsfont_find(NULL, 0, 0, 0);
if (cookie == -1 || wsfont_lock(cookie, &wf, WSDISPLAY_FONTORDER_R2L,
WSDISPLAY_FONTORDER_L2R))
printf("lcg_common_init: can't load console font, using
fallback\n");
printf gets executed.
--
Bérczi Gábor
/Gabucino/
[demime 0.98d removed an attachment of type application/pgp-signature]
Visit your host, monkey.org