From koffice Sun Dec 15 16:40:55 2002 From: "Tran Dang Minh" Date: Sun, 15 Dec 2002 16:40:55 +0000 To: koffice Subject: My overriding X-MARC-Message: https://marc.info/?l=koffice&m=103997101218550 MIME-Version: 1 Content-Type: multipart/mixed; boundary="------=_NextPart_000_0000_01C2A493.694B8560" This is a multi-part message in MIME format. ------=_NextPart_000_0000_01C2A493.694B8560 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Dear all - my teachers, I tried to override the XftDrawString8() in Redhat 7.3 and I think I = have a success. The HelloX.c which use XftDrawString8() to display a = string have been modified (change into my own string) . But I also have = some problems. And the biggest is " I can not override any string that I = want in the whole system ". I want to ask some question - VERY = IMPORTANT and URGENT to me 1. What exactly Redhat 7.3 (XFree86 4.2, KDE 3.0, QT 3) functions use to = display a string in the screen ? I know that Xft have 4 functions : XftDrawString8(), = XftDrawString16(), XftDrawString32(), XftDrawStringUft8() to display a = string. And if the system uses Xft , it will call these functions. I tried to = override all 4 functions . Compile OK but it can not work in my system. = Maybe because of my poor programming skill in C or I must tried some = Xlib functions 2. According to Xft document, it uses Unicode encoding for input string = in Xft displaying functions, But it doesn't tell exactly what encoding ? = : Uft8, Xchar2b, UCS2, UCS4 ( 16 or 32 bits ) 3. C uses "wchar_t" for Unicode characters ? How to use it ? Can you = send me some examples about using wchar_t functions ( wcscpy(), = wcscmp()....) . I have POOR programming skill. Please show me some tips, = cuations when use these functions 4. Could we modify , configure system (Xft )to automatically select the = fonts to display a string which is best match to the original font in a = text file. And how to do it ? 5. I have a Microsoft Word document which uses a Vietnamese font ( = VNI-helvetica ). When I open it in Kword (Redhat 7.2) , Kword = automatically change my original font ( VNI-helvetica) into (Helvetica - = unicode font which available in my system) . Can you explain me this ? = and tell me if I can hack the system to keep my original font in *.doc = file, after that I change the font as I want. =20 Dear , I know I bother you so much these days but I am in big TROUBLE. = Time is not wait for me. Deadline coming... I have about 20 days to finish my project. There's alot to be done... I am sorry if you have to read my mail and answer such silly questions = but all of your answers are very useful to me . Please help me for I can not find any one near me to help.=20 I'm sorry for my CC, It's so impolite . Just forgive me .... Thank you for all things you've done to me ....and thanks for reading I'm looking forward to seeing your reply. Dang Minh Ps: please forward this mail to any one you think they can help me.=20 ------=_NextPart_000_0000_01C2A493.694B8560 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Dear = all - my=20 teachers,
 
  = I tried to=20 override the XftDrawString8() in Redhat 7.3 and I think I have a = success. The=20 HelloX.c which use XftDrawString8() to display a string have been = modified=20 (change into my own string) . But I also have some problems. And the = biggest is=20 " I can not override any string that I want in the  whole = system ". I=20 want to ask some question - VERY IMPORTANT and URGENT to = me
 
1. = What exactly=20 Redhat 7.3 (XFree86 4.2, KDE 3.0, QT 3) functions use to display a = string in the=20 screen ?
  = I know that=20 Xft have 4 functions : XftDrawString8(), XftDrawString16(),=20 XftDrawString32(), XftDrawStringUft8() to display a = string.
And if = the system=20 uses Xft , it will call these functions. I tried to override all 4 = functions .=20 Compile OK but it can not work in my system. Maybe because of my poor=20 programming skill in C or I must tried some Xlib = functions
 
2. = According to Xft=20 document, it uses Unicode encoding for input string in Xft displaying = functions,=20 But it doesn't tell exactly what encoding ? : Uft8, Xchar2b, UCS2, = UCS4 (=20 16 or 32 bits )
 
3. C = uses "wchar_t"=20 for Unicode characters ? How to use it ? Can you send me some = examples=20 about using wchar_t functions ( wcscpy(),  wcscmp()....) . I have = POOR=20 programming skill. Please show me some tips, cuations when use these=20 functions
 
4. = Could we modify ,=20 configure  system (Xft )to automatically select the fonts to = display a=20 string which is best match to the original font in a text file. And how = to do it=20 ?
 
5. =  I have a=20 Microsoft Word document  which uses a Vietnamese font ( = VNI-helvetica ).=20 When I open it in Kword (Redhat 7.2) , Kword automatically change my = original=20 font ( VNI-helvetica) into (Helvetica - unicode font which available in = my=20 system) . Can you explain me this ? and tell me if I can hack the system = to=20 keep my original font in *.doc file, after that I change the = font as I=20 want.
   
Dear , = I know I=20 bother you so much these days but I am in big TROUBLE. Time is not wait = for me.=20 Deadline coming...
I have = about 20 days=20 to finish my project. There's alot to be done...
I am = sorry if you=20 have to read my mail and answer such silly questions but all of your=20 answers are very useful to me .
Please = help me for I=20 can not find any one near me to help.
I'm = sorry for my=20 CC, It's so impolite  . Just forgive me = ....
Thank = you for all=20 things you've done to me ....and thanks for reading
 
I'm = looking forward=20 to seeing your reply.
Dang=20 Minh
 
Ps: = please forward=20 this mail to any one you think they can help me.
 
 
------=_NextPart_000_0000_01C2A493.694B8560-- ____________________________________ koffice mailing list koffice@mail.kde.org To unsubscribe please visit: http://mail.kde.org/mailman/listinfo/koffice