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:[EMAIL PROTECTED]
title:Software Engineer<br>Sun Microsystems
note:ICQ       : 2519977
fn:<b>Amir Uval</b>
end:vcard

Reply via email to