nanogui: GrGetFontInfo returns wrong maxwidth
Subject:
Re: [nanogui] GrGetFontInfo returns wrong maxwidth
From:
"Zeng_Pengcheng" ####@####.####
Date:
9 Jun 2004 03:00:27 +0100
Message-Id: <40C66E12.00000A.00412@ZPC>
i have happened to meet this kind of problem. when i used win32 api set, i
found the cursor
always had a displacement with the latest char in control, for example, the
editbox, and the problem
occured in edit.c 's GetSysCharWidth function. it just used the width of
char `X' for easy implementation!!
i have not touch nano api. so here just some hint.
-------Original Message-------
From: tj
Date: 06/09/04 05:35:59
To: nanogui
Subject: [nanogui] GrGetFontInfo returns wrong maxwidth
When I use GrGetFontInfo() it returns maxwidth smaller then the 'W'
character. So, Wnen I use maxwidth as the x width in the blanking
GrFillRect() to blank a single char area, it leaves the right portion of
the'W' on the screen.
Using courR12-ISO8859-1.pcf.gz as the font file.
Even tried writing a ' ' with GrText() over it still leaves the right
portion of the 'W'.
tj
---------------------------------------------------------------------
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.####