Dear Albert, I had similar issue with nano-X and FLTK for fonts all fonts worked in PC for the same a FLTK app but in hardware with nano-x it displayed only one font and one size in-spite of any font selection.
I found the problem was in fonts installation make sure you have all the fonts the systems fonts director (/usr/share/fonts) and these dirs also is in fontslist.c in nano-x. Hope this helps 2011/3/11, Greg Haerr <g...@censoft.com>: > Albert - > > I'm not sure I understand exactly what you're looking for, but > you'll need to write code in FLTK, not nano-X. I'm not very > expert in FLTK, so you might ask your questions on their list, > as they are familiar with changing colors with FLTK. > > With regards to running FLTK/Nano-X on PCs, it was a suggestion > as its very easy to compile and run FLTK and nano-X on PC Linux > platforms, just for test purposes. You might also look at the > FLTK demo directory and demos in order to find sample source > code to do what you want. > > Regards, > > Greg > ----- Original Message ----- > From: albert3_c...@askey.com.tw > To: g...@censoft.com ; nanogui-...@linuxhacker.org ; > nanogui@linuxhacker.org > Sent: Wednesday, March 09, 2011 11:36 PM > Subject: RE: Nano-X issue > > > Dear Greg, > > > > How are you ? > > > > Thanks for your kindly answer and test. > > As we use FLTK/NANO-X on TI DM365 Platform (Embedded Linux System), not > on PC. > > > > We can use FLTK/NANO-X to put Image on some point (x,y), IR and Mouse can > work on TI Platform successfully. > > > > In order to display “Wordings with different color & size” (OSD) in Linux > booting time, it lets users know our device’s status. > > We encounter this kind of problem. And your help is very appreciated. > > > > Can you give us some idea on how to check something between Nano-X and > HW’s initialization (Color Plate, Font Selection, Word Size) ? > > > > Have a good working day. > > > > Best Regards, > > > > Albert Chen > > E-mail: albert3_c...@askey.com.tw > > TEL: 886-2-22287588 # 18019 > > FAX: 886-2-32349340 > > > > From: Greg Haerr [mailto:g...@censoft.com] > Sent: Thursday, March 10, 2011 2:05 PM > To: Albert3 Chen(陳堯山_Askey_TW); nanogui-...@linuxhacker.org; > nanogui@linuxhacker.org > Subject: Re: Nano-X issue > > > > Albert - > > > > You'll need to read up or post on the FLTK list, as you're using the FLTK > > toolkit to set up text and colors. Check to see that the colors are > > in fact changing when running on FLTK/X11, instead of through the > > NXLIB library. I have tested nano-X with FLTK 1.10 and all the FLTK > > demos run fine. > > > > Regards, > > > > Greg > > ----- Original Message ----- > > From: albert3_c...@askey.com.tw > > To: nanogui-...@linuxhacker.org ; nanogui@linuxhacker.org ; > g...@censoft.com > > Sent: Wednesday, March 09, 2011 1:13 AM > > Subject: Nano-X issue > > > > Dear Sir, > > > > The following code is to display text "Hello World!" on TI 365 platform, > > The development environment uses Nano-X(v0.92) and FLTK(v1.07). > > > > Questions: > > 1. Cannot change the text size, even modify box->labelsize(); > > 2. Cannot change the background and text color after modifying the > relative attribute. The background is always blue and text is black. > > > > Would you kindly tell how to set/check font, color, size in Nano-X > library ? > > Please give me a hand. > > Thanks a lot. > > > > int main(int argc, char **argv) > > { > > Fl_Window *window = new Fl_Window(340,180); > > Fl_Box *box = new Fl_Box(20,40,300,100,"Hello, World!"); > > box->box(FL_UP_BOX); > > box->labelfont(FL_BOLD+FL_ITALIC); > > box->labelsize(10); > > box->labeltype(FL_SHADOW_LABEL); > > window->end(); > > window->show(argc, argv); > > return Fl::run(); > > } > > > > Albert Chen > > E-mail: albert3_c...@askey.com.tw > > TEL: 886-2-22287588 # 18019 > > FAX: 886-2-32349340 > -- With Regards Gobi.C +91-9952556158 --------------------------------------------------------------------- To unsubscribe, e-mail: nanogui-unsubscr...@linuxhacker.org For additional commands, e-mail: nanogui-h...@linuxhacker.org