Subject:
Re: [nanogui] Re: Nano-X issue
From:
Luca Santini ####@####.####
Date:
11 Mar 2011 09:01:51 -0000
Message-Id: <4D79E4A1.3030504@spesonline.com>
Albert,
be also sure to have fonts support (freetype2 ?) compiled-in in your FLTK and Nano-X build.
L.
On 11/03/2011 08:41, Gobi wrote:
> My working environment is
> 1) in PC MyApp / FLTK / X11
> In PC everything worked fine
> 2) in Hardware MyApp / FLTK / NX11
>
> I had issues in different fonts and font size. I suspected NX but
> after adding appropriate fonts in the hardware system directory my
> problem got solved.
>
> Regarding background color I have no Idea but it should be your fltk
> issue may be I can try to help you if you can share your part of that
> code.
> But again as Greg said it should be discussed in a FLTK forum
>
>
> 2011/3/11, ####@####.####
>> Dear Gobi,
>>
>> It is great.
>> Thanks very much for your suggestion.
>>
>> Your working environment should be PC.
>> But Mine is on TI DM365 Platform/Embedded Linux System
>>
>> Do you encounter this problem which it can't set the correct background&
>> foreground color to text ?
>> This issue is as below.
>> ==> Cannot change the background and text color after modifying the
>> relative attribute. The background is always blue and text is black.
>>
>> This color issue is related to System Color Palette and hardware platform.
>> Right ?
>> How do you make sure which color you set is correct or how to fix ?
>> Your info. is helpful for us. Thanks very much.
>>
>> Best Regards
>>
>> Albert Chen
>> E-mail: ####@####.####
>> TEL: 886-2-22287588 # 18019
>> FAX: 886-2-32349340
>>
>>
>> -----Original Message-----
>> From: Gobi ####@####.####
>> Sent: Friday, March 11, 2011 1:24 PM
>> To: Greg Haerr
>> Cc: Albert3 Chen(陳堯山_Askey_TW); ####@####.####
>> ####@####.####
>> Subject: Re: [nanogui] Re: Nano-X issue
>>
>> 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 ####@####.####
>>> 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: ####@####.####
>>> To: ####@####.#### ; ####@####.#### ;
>>> ####@####.####
>>> 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: ####@####.####
>>>
>>> TEL: 886-2-22287588 # 18019
>>>
>>> FAX: 886-2-32349340
>>>
>>>
>>>
>>> From: Greg Haerr ####@####.####
>>> Sent: Thursday, March 10, 2011 2:05 PM
>>> To: Albert3 Chen(陳堯山_Askey_TW); ####@####.####
>>> ####@####.####
>>> 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: ####@####.####
>>>
>>> To: ####@####.#### ; ####@####.#### ;
>>> ####@####.####
>>>
>>> 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: ####@####.####
>>>
>>> TEL: 886-2-22287588 # 18019
>>>
>>> FAX: 886-2-32349340
>>>
>>
>>
>> --
>> With Regards
>> Gobi.C
>> +91-9952556158
>>
>
>
--
*Luca Santini*
//Elettronica di Sistema//
*SPES. S.c.p.a*
Via Lamberto Corsi, 43
60044 Fabriano (AN)
tel. +39 0732 25291 diretto 0732 2529451
fax +39 0732 2529441
####@####.#### ####@####.####
www.spesonline.com <http://www.spesonline.com>