nanogui: GrGetGCTextSize returns wrong width?


Previous by date: 31 Dec 2000 19:04:42 -0000 nanowm & input focus, Amit Kulkarni
Next by date: 31 Dec 2000 19:04:42 -0000 Re: nanowm & input focus, Jordan Crouse
Previous in thread:
Next in thread:

Subject: GrGetGCTextSize returns wrong width?
From: Amir Uval ####@####.####
Date: 31 Dec 2000 19:04:42 -0000
Message-Id: <3A4F8455.667A901B@israel.sun.com>

hi,

I'm having a trouble getting the correct width of a string in a system
font (I'm using GR_FONT_GUI_VAR).
The relevant code segment is: (I'm using unicode as the string).

   int width,height,base;
  GrGetGCTextSize(gc,(void
*)charArray,n,MWTF_UC16,&width,&height,&base);

I'm getting a wrong value as the width (more than the correct width),
but the height and baseline values are correct.

I've searched through all the recent mails to this group, but I didn't
hear anyone complaining about this.
Did anyone encounter the same problem?

Thanks,

Amir



Previous by date: 31 Dec 2000 19:04:42 -0000 nanowm & input focus, Amit Kulkarni
Next by date: 31 Dec 2000 19:04:42 -0000 Re: nanowm & input focus, Jordan Crouse
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.