nanogui: Displaying UTF-8
Subject:
Re: Displaying UTF-8
From:
"Greg Haerr" ####@####.####
Date:
15 Jun 2000 18:25:47 -0000
Message-Id: <0ab001bfd6f7$0a4c4520$15320cd0@gregh>
Guo,
I have added your patches into the upcoming pre9 release.
Regards,
Greg
----- Original Message -----
From: ¹ùÇ¿ ####@####.####
To: Greg Haerr ####@####.####
Sent: Thursday, May 11, 2000 12:44 AM
Subject: Re: Displaying UTF-8
: > Great. Could you send me a "diff -urN" patch when completed?
: Of course! You and other mail-list people give me a lot of helps before. I
only use one 12x12 font, so program is very simple and need your advice.
: Background: GB2312 is Chinese nation standard of Chinese encoding. Last month
a new standard GB18030 had been announced and will be supported by every Chinese
version OS soon, but I cannot get encoding rules and fonts now. So I only test
old GB2312. One Chinese char has 2 bytes, first byte is high byte and called QU,
2nd one is low byte and called WEI. QU >= 0xA1 and QU<= 0xF7; WEI >= 0xA1 and
WEI <= 0xFE. The order of char is (QU - 0xA1) * 94 + (WEI - 0xA1), means one by
one. 94 = 0xFE - 0xA1 + 1.
: I got a GB2312 12x12 font, each char is 2X12=24 bytes, 2 bytes is 12 bits;
12 is lines. I code a simple execute file and covert it to a compact format,
that cover each 4 bytes into 3 bytes. Then translate it to C array format and
redirect to font/gb12dat.c file. add it to Makefile.
:
: I modified 2 files, engine/devfont.c and driver/genfont.c, Include examine
Chinese char, char width calc, and char bitmap.
: I modified default font with Fixed one in /nanox/srvmain.c because it look
better when mixed Chinese and English that use 6*13 English font and 12x12
Chinese font.
: Last, it is running.
: Sorry for my English.
: Regards,
: Guo.
:
:
: