nanogui: Chinese font problem


Previous by date: 27 Apr 2004 06:54:20 +0100 Re: nano-x and portrait mode, tj
Next by date: 27 Apr 2004 06:54:20 +0100 Re: [nanogui] freetype problem, Takács Áron
Previous in thread: 27 Apr 2004 06:54:20 +0100 Re: Chinese font problem, Greg Haerr
Next in thread: 27 Apr 2004 06:54:20 +0100 Re: Chinese font problem, veerkumar

Subject: Re: Re: [nanogui] Chinese font problem
From: "wang yuan" ####@####.####
Date: 27 Apr 2004 06:54:20 +0100
Message-Id: <BAY18-F42Wo2q0LZN4a00010727@hotmail.com>

Hi,Greg & all,

     Thanks for your reply.
     I thought that I have made a mistake at first.The program can  display 
the 
 correct chinese character because of the "system fixed font 0"(something 
like that,I forgot),
not because  using the "simsun.ttf"--a chinese truetype font--The program 
didn't find it at all.
After I set the config file with
    HAVE_HZK_SUPPORT N  HAVE_GB2312_SUPPORT N  HAVE_BIG5_SUPPORT N   
HAVE_FREETYPE2_SUPPORT Y,
when using :
   #define FONTNAME "/usr/local/microwin/fonts/truetype/simsun.ttf"
  font =GrCreateFont(FONTNAME,i,NULL);               
  sprintf(buf,"你好 hello world");
  GrText(w,gc,0,y,buf,strlen(buf),MWTF_DBCS_EUCCN);
the program displays only the  English characters in the correct fontsize 
and no chinese character is displayed.

Dose microwin only support chinese in metrix font?
If so,how can I display smaller chinese charater? Any idea?  

    
        Best regards. 
				 
        wang yuan
####@####.####
          2004-04-27   

	

======= 2004-04-26 22:27:00 you wrote in the letter:=======

>:  First,I copied a simsun.ttf form windows to src/fonts/ 
>: ,and used it as a parameter to GrCreateFont().
>:      Then the GrText() with flag "MWTF_DBCS_EUCCN" .The program shows 
the 
>: right characters ,but they are in the same size.             
>:   
>:         In the config file ,I set:
>:         HAVE_HZK_SUPPORT=Y
>:         HAVE_GB2312_SUPPORT=Y
>:         HAVE_BIG5_SUPPORT=N
>:        HAVE_FREETYPE2_SUPPORT=Y
>
>Set HAVE_HZK_SUPPORT=N and HAVE_GB2312_SUPPORT=N. 
>Otherwise, those defines set built-in support for the
>fonts, which probably override the freetype2 support.
>
>Secondly, you must give a size parameter in the GrCreateFont
>call.  Make sure you use the full absolute pathname
>in the GrCreateFont call as well.
>
>Regards,
>
>Greg
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ####@####.####
>For additional commands, e-mail: ####@####.####
>
>.

= = = = = = = = = = = = = = = = = = = =

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  


Previous by date: 27 Apr 2004 06:54:20 +0100 Re: nano-x and portrait mode, tj
Next by date: 27 Apr 2004 06:54:20 +0100 Re: [nanogui] freetype problem, Takács Áron
Previous in thread: 27 Apr 2004 06:54:20 +0100 Re: Chinese font problem, Greg Haerr
Next in thread: 27 Apr 2004 06:54:20 +0100 Re: Chinese font problem, veerkumar


Powered by ezmlm-browse 0.20.