nanogui: Chinese font problem


Previous by date: 27 Apr 2004 05:27:28 +0100 Re: nano-x and portrait mode, Greg Haerr
Next by date: 27 Apr 2004 05:27:28 +0100 Re: Internationalization and config, Greg Haerr
Previous in thread: 27 Apr 2004 05:27:28 +0100 Chinese font problem, wang yuan
Next in thread: 27 Apr 2004 05:27:28 +0100 Re: Chinese font problem, wang yuan

Subject: Re: [nanogui] Chinese font problem
From: "Greg Haerr" ####@####.####
Date: 27 Apr 2004 05:27:28 +0100
Message-Id: <01b701c42c0f$f71fbb40$3aba46a6@xmission.com>

:  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


Previous by date: 27 Apr 2004 05:27:28 +0100 Re: nano-x and portrait mode, Greg Haerr
Next by date: 27 Apr 2004 05:27:28 +0100 Re: Internationalization and config, Greg Haerr
Previous in thread: 27 Apr 2004 05:27:28 +0100 Chinese font problem, wang yuan
Next in thread: 27 Apr 2004 05:27:28 +0100 Re: Chinese font problem, wang yuan


Powered by ezmlm-browse 0.20.