nanogui: Thread: problem with microwindows


[<<] [<] Page 1 of 1 [>] [>>]
Subject: problem with microwindows
From: Girija Deo ####@####.####
Date: 1 Aug 2001 06:28:34 -0000
Message-Id: <3B67A148.A09AC9CC@cirrus.stpp.soft.net>

Sorry for sending resending mail (there was typing error in code part)


Hi,

I am trying to use microwindows-0.89pre7 on linux 2.4.0 (Cirrus Logic
board RevB), but facing lots of problems about fontsize, rectangle,
ellipse

1.Not able to change the font size.
------------------------------------
This is what i tried...
GR_FONT_ID  fontid;
fontid = GrCreateFont("times", 50, NULL);
GrSetGCFont(gc1, fontid);
GrText(window1, gc1, 40, 40, "Cirrus Logic", title_lenth, GR_TFASCII);

But whatever may be the fontsize (here its 50), there is no change in
the display.

2. Not able to draw perfect rectangle.
---------------------------------------
GrRect(window1, gc1, 5, 5, 300, 60);
but it draws rectangle in odd shape, both horrizontal lines of rectangle

are drawn outof the boundary (ie. end-point of horizontal lines do not
match with end-point of vertical line)
I tried drawing rectangle using GrPoly, or simply using lines, but the
effect is same.

3. How to use nxPaintNCArea( ) function ?

Thanks,
Girija



Subject: Re: [nanogui] problem with microwindows
From: Duncan Palmer ####@####.####
Date: 1 Aug 2001 10:10:35 -0000
Message-Id: <3B67D510.BB66721F@s3group.com>


Girija Deo wrote:
> 
> Sorry for sending resending mail (there was typing error in code part)
> 
> Hi,
> 
> I am trying to use microwindows-0.89pre7 on linux 2.4.0 (Cirrus Logic
> board RevB), but facing lots of problems about fontsize, rectangle,
> ellipse
> 
> 1.Not able to change the font size.
> ------------------------------------
> This is what i tried...
> GR_FONT_ID  fontid;
> fontid = GrCreateFont("times", 50, NULL);
> GrSetGCFont(gc1, fontid);
> GrText(window1, gc1, 40, 40, "Cirrus Logic", title_lenth, GR_TFASCII);
> 
> But whatever may be the fontsize (here its 50), there is no change in
> the display.

You are using built in fonts here, and unless a font of size 50 has been
built in to microwindows, you won't be able to resize to a 50 point
font. The only way around this is to either use true-type fonts (i
think), or build in a 50 point times font. A previous post of mine
describes how to do this - you should be able to find it in the archive.

Can't help with the rest of your questions im sorry...


Cheers,
Dunk.

-- 
Duncan Palmer                                    
####@####.####
Software Design Engineer                          Phone:    
+353-1-2911561
Silicon and Software Systems                      Fax:      
+353-1-2911001
Subject: Re: [nanogui] problem with microwindows
From: "Gary James" ####@####.####
Date: 1 Aug 2001 13:40:02 -0000
Message-Id: <3B67CEB0.570.227F40@localhost>

> You are using built in fonts here, and unless a font of size 50 has been
> built in to microwindows, you won't be able to resize to a 50 point
> font. The only way around this is to either use true-type fonts (i
> think), or build in a 50 point times font. A previous post of mine
> describes how to do this - you should be able to find it in the archive.

Here are some detailed instructions on setting up and using TrueType 
fonts in nano-X.

http://home.twcny.rr.com/embedded/microwin/install/ch3.html


Gary James
####@####.####
http://home.twcny.rr.com/embedded/

> 
> Cheers,
> Dunk.
> 
> -- 
> Duncan Palmer                                    
> ####@####.####
> Software Design Engineer                          Phone:    
> +353-1-2911561
> Silicon and Software Systems                      Fax:      
> +353-1-2911001
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
> 
> 



--
Gary A James, Critical Link, LLC         
Voice:  315.425.4045 x218  
Fax:    315.425.4048    
E-Mail: ####@####.####
WEB:    http://www.criticallink.com
Subject: problem with microwindows
From: "sourabh agrawal" ####@####.####
Date: 7 Jun 2007 16:17:27 +0100
Message-Id: <48ade1240706070817h34034b37sbde9b2888300fbb3@mail.gmail.com>

dear Greg sir,

I am not able to load images through any of the API provided by
microwindows.

like
GrDrawImageFromFile (w , gc , 100 , 100 , 50 ,50 ,"./nxkbd/keynorm.bmp" , 0
);
GrLoadImageFromFile("./keynorm.bmp",0)
GrDrawImageToFit(window1, gc, 0, 0, -1, -1, id);

My system configuration are:
#uname -a
Linux sourabha-lnx 2.6.20-1.2933.fc6 #1 SMP Mon Mar 19 10:42:48 EDT 2007
i686 i686 i386 GNU/Linux

anytime i use these API's  progam not responded well, program hanged


please help me ,
Thanks in Advance
Subject: Re: [nanogui] problem with microwindows
From: "Greg Haerr" ####@####.####
Date: 8 Jun 2007 02:13:46 +0100
Message-Id: <13cc01c7a96a$2929a0d0$6401a8c0@winXP>

: GrDrawImageFromFile (w , gc , 100 , 100 , 50 ,50 ,"./nxkbd/keynorm.bmp" ,
0

Use a full path specification, lets get that out of the way first.  The API
works, its your program that's broken.

Regards,

Greg

Subject: problem with microwindows
From: "sourabh agrawal" ####@####.####
Date: 6 Jun 2007 16:39:52 +0100
Message-Id: <48ade1240706060839x773d1820td448e239a93fd58@mail.gmail.com>

iam not able to load images through any of the API provided by microwindows.

like
GrDrawImageFromFile (w , gc , 100 , 100 , 50 ,50 ,"./nxkbd/keynorm.bmp" , 0
);
GrLoadImageFromFile("./keynorm.bmp",0)
GrDrawImageToFit(window1, gc, 0, 0, -1, -1, id);

anytime i use these API's  progam not responded well, it gets hanged
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.