> > Hello: > > > > I am currently working on getting FLTK 2.0 running on Nano-X with nxlib on > > the eCos operating system. So far my application is running up to the point > > that set_font is called. I have compiled to X11. > > > > The current nxlib requires that the font information be obtained from the > > file system, which I don't have. > > > > How do I use the built in font structure to list and set a font? > > The fltk code uses one of two font interfaces, either the traditional > Xlib/xlfd approach using XListFonts et al to list the system fonts, or the > newer and more elaborate XFT mechanism (for anti-aliased fonts etc.) > > I don't know Nano-X that well, but I doubt it supports XFT... therefore you > are forced back on the older method. If Nano-X supports XListFonts etc., then > you may be able to get that to work. > > If not, you may be forced into some other approach - in which case, Good Luck! > > If you have no file system, where will you read the fonts from? Or are you > saying you don't have font information stored in your file system...? (That > seems more likely I guess?) > > > Ian:
Thank you for your reply. After posting, I realized this probably was not the correct place to ask this question. Thanks for not flaming me. I'll be more careful in future. Nano-X does support ListFonts for fonts on the file system. Since my target is an embedded one, I don't have a file system. Fonts are converted to *.c files and compiled in to the nano-x library. After thinking about this over the last day I will be concentrating my efforts on the nxlib and nano-x side and minimizing or eliminating any changes to fltk 2.0. The great thing about this job is that even after 20 years in the business, I still learn new things every day. Best, Graham..... _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
