nanogui: NanoGTK, Chinese and Locale


Previous by date: 20 Aug 2002 14:10:50 -0000 Re: set a timer when move the window!, wang
Next by date: 20 Aug 2002 14:10:50 -0000 ipaq touchscreen calibration, Florian Berger
Previous in thread: 20 Aug 2002 14:10:50 -0000 Re: NanoGTK, Chinese and Locale, Johnny Fung
Next in thread:

Subject: Re: NanoGTK, Chinese and Locale
From: Chen sheng ####@####.####
Date: 20 Aug 2002 14:10:50 -0000
Message-Id: <20020820135600.24715.qmail@web9902.mail.yahoo.com>

Hi Johnny Fung,

I am glad to hear that NanoGTK is not locale dependent.  But I still
have something not very clear.  In Microwindows we can create Chinese
font by:

    font = GrCreateFont("HZKFONT", 16, NULL);

Similarly, in GDK we can load font by calling gdk_font_load() or
gdk_fontset_load().  But Microwindows font names are different from
XWindow XLFD font names.  I read the code of gdk_font_load() in
NanoGTK, find it converts XLFD font name to Microwindows font
name.  For example, if XLFD font name is

    -*-*-medium-r-normal--12-*-*-*-*-*-gb2312.1980-0

then the corresponding Microwindows font name is
GR_FONT_CJKGB12_FIXED, which is a macro defined as "cjk_gb_hzk12".
But where is the font "cjk_gb_hzk12"?

I also notice there are Chinese fonts in the directory
$NANOGTK_HOME/Testbench/fonts.  But how can they be used?

Regards,
Sheng


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

Previous by date: 20 Aug 2002 14:10:50 -0000 Re: set a timer when move the window!, wang
Next by date: 20 Aug 2002 14:10:50 -0000 ipaq touchscreen calibration, Florian Berger
Previous in thread: 20 Aug 2002 14:10:50 -0000 Re: NanoGTK, Chinese and Locale, Johnny Fung
Next in thread:


Powered by ezmlm-browse 0.20.