nanogui: Thread: What coding and font is best for Chinese application


[<<] [<] Page 1 of 1 [>] [>>]
Subject: What coding and font is best for Chinese application
From: Pete Klemm ####@####.####
Date: 22 Nov 2006 19:51:09 +0000
Message-Id: <4564AA28.7040007@esysr.com>

I have an application that I am modifying to support Chinese
on my 320x240 LCD. Many of my GUI buttons will allow
characters 12 pixels high.

I currently use LC_MESSAGE to get Western & Europen support
(ISO8859-1 and ISO8859-15), but I am confused about Chinese.
Currently I use 8 bit ASCII. In my reading I find the I will probably
have to use UTF-8 to support the many characters for Chinese.

Can anyone with experience in this area provide a pointer to documents
or examples how this may be accomplished on a small LCD with
limited space for font storage?

Thanks,
Pete
Subject: Re: [nanogui] What coding and font is best for Chinese application
From: "Greg Haerr" ####@####.####
Date: 23 Nov 2006 08:21:00 +0000
Message-Id: <17ac01c70ea4$03684920$6401a8c0@winXP>

: I currently use LC_MESSAGE to get Western & Europen support
: (ISO8859-1 and ISO8859-15), but I am confused about Chinese.
: Currently I use 8 bit ASCII. In my reading I find the I will probably
: have to use UTF-8 to support the many characters for Chinese.

8 bits isn't enough to display most Chinese characters, so some
encoding, like UTF-8 is required to access all characters.
The encoding method for accessing characters is not the
same as assessing the data required for various loaded fonts.

: Can anyone with experience in this area provide a pointer to documents
: or examples how this may be accomplished on a small LCD with
: limited space for font storage?

The older, obsolete HZK12/HZK16 font system uses a small
incore font to display 12 or 16 pixel high/wide chinese characters.
You can enable this option in the config file and see the results
with one of the fontdemo*.sh scripts.  I think the demo is
demos/t1demo.c, IIRC.

Regards,

Greg
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.