nanogui: freetype2 and chinese font.


Previous by date: 5 Jul 2004 04:39:40 +0100 why nano-X runed only once ??, zw
Next by date: 5 Jul 2004 04:39:40 +0100 Re: freetype2 and chinese font., Li Runbo (Jason)
Previous in thread:
Next in thread: 5 Jul 2004 04:39:40 +0100 Re: freetype2 and chinese font., Li Runbo (Jason)

Subject: freetype2 and chinese font.
From: "Ronnie Wang" ####@####.####
Date: 5 Jul 2004 04:39:40 +0100
Message-Id: <000701c46241$c63e1450$704912ac@cn.utstarcom.com>

He all!
     I set the config’s option to support freetype2 fonts .Then I
select  a Chinese ttf font (simsun.ttf) and according to the following:
      #define FONT
“~/microwindows-0.90/src/fonts/trurtype/simsun.ttf”
   ….
          GR_FONT_ID font;
         Font= GrCreateFont(FONT,24,NULL);
        GrSetGCFont(gc,font);
        ……
Then I want to display a Chinese and English string as:”hello 你好
world!”;
       GrText(w,gc,20,20, ”hello 你好world!”,-1,MWTF_DBCS_EUCCN);
 
But when I run the demo and the string display neither chinese nor
English.
So my question is:
1, Are there some Chinese freetype2 fonts the microwindows can support? 
2, Whether the microwindows freetype2 fonts encoding support chinese
fonts encoding?
Someone has the successful experience please give me some hints!!!
Best Regard
 
******2004-07-05*********
Ronnie Wang(Wang Xingqiang)
 
UTStarcom Telecom Co., Ltd.
#129 WenYi Road, Hangzhou,
31002  P.R. China
 
Tel: (086-571) 8886-2342 ext. 6138
Email: ####@####.####
************************************
 

Previous by date: 5 Jul 2004 04:39:40 +0100 why nano-X runed only once ??, zw
Next by date: 5 Jul 2004 04:39:40 +0100 Re: freetype2 and chinese font., Li Runbo (Jason)
Previous in thread:
Next in thread: 5 Jul 2004 04:39:40 +0100 Re: freetype2 and chinese font., Li Runbo (Jason)


Powered by ezmlm-browse 0.20.