nanogui: Chinese font problem
Subject:
Re: [nanogui] Chinese font problem
From:
####@####.####
Date:
27 Apr 2004 10:34:54 +0100
Message-Id: <OF822B36F6.0243626C-ON80256E83.0034296C-80256E83.00349F13@philips.com>
Hi,
> 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.
When I implemented FreeType2 support, I only cared about Unicode
characters. If you pass in a UTF-8 or UC16 string, set the right flags,
and have a font that supports Unicode, then it should work.
If you want to use a different encoding then you'll need to modify the
FreeType2 driver to select the correct charmap. Currently it
unconditionally selects a Unicode one.
Kind regards,
Jon Foster
--