[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
nano-x GrGetGCTextSize returns wrong width?
- To: linux-il(at-nospam)cs.huji.ac.il
- Subject: nano-x GrGetGCTextSize returns wrong width?
- From: Amir Uval <amir.uval(at-nospam)israel.sun.com>
- Date: Mon, 01 Jan 2001 13:39:18 +0200
- Reply-To: amir.uval(at-nospam)israel.sun.com
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
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.
Did anyone encounter the same problem?
Thanks,
Amir
begin:vcard
n:Uval;Amir
tel;cell:+972-51-383093
tel;fax:+972-9-9711222
tel;work:+972-9-9711248
x-mozilla-html:FALSE
org:<IMG SRC="http://java.sun.com/images/logos/javalogo52x88.gif" align=right>
adr:;;10, Hasadnaot st.;Herzeliah Pituach;;;Israel
version:2.1
email;internet:amir.uval@sun.com
title:Software Engineer<br>Sun Microsystems
note:ICQ : 2519977
fn:<b>Amir Uval</b>
end:vcard