nanogui: Problems with uwindows
Subject:
RE: [nanogui] Problems with uwindows
From:
"Sadeesh Kumar" ####@####.####
Date:
1 Aug 2001 08:11:44 -0000
Message-Id: <NFBBKGGIGLALIIFDCDCICEPHCBAA.sadeesh@lgsi.co.in>
please find my replay quoted with ===>.
regards,
sadeesh
-----Original Message-----
From: Girija Deo ####@####.####
Sent: Wednesday, August 01, 2001 11:54 AM
To: ####@####.####
Subject: [nanogui] Problems with uwindows
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, gc2, 40, 40, "Cirrus Logic", title_lenth, GR_TFASCII);
======> Setting font to gc1, but for GrText u are passing gc2????.
But whatever may be the fontsize (here its 50), there is no change in
the display.
2. Not able to draw perfect rectangle.
---------------------------------------
GrRect(window2, 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.
===> You no need to use GrPoly. It should work in GrRect itself. Anyhow will
try and let u know.
3. How to use nxPaintNCArea( ) function ?
Thanks,
Girija
---------------------------------------------------------------------
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.####