[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Displaying UTF-8
From: ####@####.#### (Michael Sobolev) Date: 8 May 2000 09:39:50 -0000 Message-Id: <20000508133931.A644@despair.transas.com> Is it possible to display a text in UTF-8? If yes, what are the requirement beside an appropriate font? Thanks, -- Mike | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: Displaying UTF-8
From: Murphy Chen ####@####.#### Date: 9 May 2000 09:08:26 -0000 Message-Id: <Pine.LNX.4.10.10005091706040.22029-100000@pc120105.ccl.itri.org.tw> > Is it possible to display a text in UTF-8? If yes, what are the > requirement > beside an appropriate font? Yes. I've sucessfully displayed text in UTF-8 by using TTF fonts. ------------------------------------------------------- Murphy Chen (陳正哲) ####@####.#### Design Engineer, Internet Embedded System Department Computer & Communications Research Laboratories Industrial Technology Research Institute, Taiwan | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: Displaying UTF-8
From: "Greg Haerr" ####@####.#### Date: 10 May 2000 03:14:00 -0000 Message-Id: <059601bfba2d$c37e6b40$15320cd0@gregh> : On Mon, May 08, 2000 at 10:04:34AM -0600, Greg Haerr wrote: : > GrText() takes a third argument which is the text encoding, : > use GR_TFUTF8 for UTF-8 encoded text. Use a FreeType/ : > TrueType font that is unicode encoded, and you're set. : : Hmm.. Thanks. Does your mentioning TrueType fonts only mean that BDF fonts (if : I remember correctly, these are supported) cannot be used for such a text? I can't remember if I answered you yet or not. Currently, the Microwindows builtin fonts use a byte-sized index, making BDF fonts unsuitable. However, this would be very easy to change. The reason it hasn't yet is that the index table per builtin font would be quite large, and we're trying to keep the size of the builtin fonts down... Take a stab at adding it if you want the feature. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: Displaying UTF-8
From: ####@####.#### Date: 10 May 2000 12:03:40 -0000 Message-Id: <001d01bfba36$5761f0e0$460101a8@guo> Hi all: I had made a Chinese(GB2312) build-in font in Micro Window tentatively, and it can be display nomal. Some .c file need to be modified. It's not difficult. Regrags, Guo | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: Displaying UTF-8
From: "Greg Haerr" ####@####.#### Date: 10 May 2000 17:38:20 -0000 Message-Id: <008501bfbaa6$a84847f0$3017dbd0@censoft.com> : I had made a Chinese(GB2312) build-in font in Micro Window tentatively, and it can be display nomal. Some .c file need to be modified. It's not difficult. Great. Could you send me a "diff -urN" patch when completed? Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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. : : : | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |