nanogui: FLTK 2.0 Fonts
Subject:
Re: [nanogui] FLTK 2.0 Fonts
From:
Graham Henderson ####@####.####
Date:
2 Aug 2007 15:07:02 +0100
Message-Id: <872728.61798.qm@web32007.mail.mud.yahoo.com>
Greg:
The good people over at the fltk forum provided some insight. Within the font_xlfd fileI simply commented out the call to XListFonts.
I had stack related problems due to a buffer of MAXREQUESTSZ ( 30000) being allocated on the stack.
GsHandleClient(int fd)
{
nxReq * req;
long len;
char buf[MAXREQUESTSZ];
.
.
.
Increasing the stack for the server task solved the problem. Would it be better to allocate that memory from the heap or statically define it globally?
Graham....
Greg Haerr ####@####.#### wrote: : The application is blowing up due to the handling of the fonts in X11 vs
eCos. Within eCos, the fonts are compiled and are not referred to along a
file system path.
In that case, XListFonts will require a rewrite likely. And you may have to
hack FLTK, which uses numbers to identify fonts except for when
they're finally pulled out of some internal table and get converted
to a filename, to be matched with XListFonts.
Regards,
Greg
:
: XListFonts returns a sorted list of fonts found in the system that match a
specific pattern.
:
: What do I need to do to use the built in fonts provided by fltk?
---------------------------------------------------------------------
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.####
Graham W. Henderson
241 Sauk Drive
Batavia, IL 60510-8660
630 406 1724 (home)
630 862 6474 (cell)
801 406 6008 (fax )
---------------------------------
Need a vacation? Get great deals to amazing places on Yahoo! Travel.