From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] Japanese Font From: okamoto@granite.cias.osakafu-u.ac.jp MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010213053639.EF022199D7@mail.cse.psu.edu> Date: Tue, 13 Feb 2001 14:35:54 +0900 Topicbox-Message-UUID: 61ba2dc6-eac9-11e9-9e20-41e7f4b1d025 Ok, I made some Japanese fonts for Plan9, which includes 10x10, 12x10, 14x14, 20x20, 32x32, 40x40, 48x48 dotts, and going to put those to our web page (http://basalt.cias.osakafu-u.ac.jp/plan9/p9index.html). To use those fonts, you may want to edit your /lib/font/bit/pelm/unicode.*.font or /lib/font/bit/lucida/unicode.*.font files. The 14x14 font will fit best to pelm/unicode.8.font... In my case, I editted as follows: lucidasans/unicode.6.font for 10x10 Kanji lucida/unicode.5.font for 12x10 kanji lucida/unicode.6.font for 14x14 kanji lucida/unicode.7.font for 16x16 kanji lucida/unicode.8.font for 20x20 kanji lucida/unicode.10.font for 24x24 kanji lucida/unicode.14.font for 32x32 kanji lucida/unicode.16.font for 40x40 kanji lucida/unicode.20.font for 48x48 kanji Some of those will not fit just to the dot size of JIS Kanji, and I tried the most nearest one. (EXAMPLE 1) I editted also font definitions of rdhtml.c of mothra (Miller's 3ed patch + my Japanese patch) as follows: typedef struct Fontdata Fontdata; struct Fontdata{ char *name; Font *font; int space; }fontlist[2][4][4]={ "lucidasans/latin1.6", 0, 0, "lucidasans/latin1.7", 0, 0, "lucidasans/latin1.10", 0, 0, "lucidasans/latin1.13", 0, 0, "lucidasans/italiclatin1.6", 0, 0, "lucidasans/italiclatin1.7", 0, 0, "lucidasans/italiclatin1.10", 0, 0, "lucidasans/italiclatin1.13", 0, 0, "lucidasans/boldlatin1.6", 0, 0, "lucidasans/boldlatin1.7", 0, 0, "lucidasans/boldlatin1.10", 0, 0, "lucidasans/boldlatin1.13", 0, 0, "lucidasans/typelatin1.6", 0, 0, "lucidasans/typelatin1.7", 0, 0, "pelm/ascii.12", 0, 0, "pelm/ascii.16", 0, 0, "lucida/unicode.6", 0, 0, "lucida/unicode.7", 0, 0, "lucida/unicode.10", 0, 0, "lucida/unicode.14", 0, 0, "lucida/unicode.6", 0, 0, "lucida/unicode.7", 0, 0, "lucida/unicode.10", 0, 0, "lucida/unicode.14", 0, 0, "lucida/unicode.6", 0, 0, "lucida/unicode.7", 0, 0, "lucida/unicode.10", 0, 0, "lucida/unicode.14", 0, 0, "lucida/unicode.6", 0, 0, "lucida/unicode.7", 0, 0, "lucida/unicode.10", 0, 0, "lucida/unicode.14", 0, 0, }; Yes, I got good results for our above mentioned UTF-8/Japanese EUC web page. (EXAMPLE 2) For charon, I defined those fonts as follows (in appl/charon/charon_gui.b) init() { #shannon_gui=load Shannon_GUI Shannon_GUI->PATH; #if(shannon_gui==nil) # CU->raise(sys->sprint("Exinternal: couldn't load Shannon_GUI:%r")); #shannon_gui->init(); CtlFnt=1; fonts=array[NumFnt] of { FntR*NumSize+Tiny => Fontinfo("/fonts/lucidasans/unicode.6.font", nil, 0), FntR*NumSize+Small => ("/fonts/lucida/unicode.6.font", nil, 0), FntR*NumSize+Normal => ("/fonts/lucida/unicode.7.font", nil, 0), FntR*NumSize+Large => ("/fonts/lucida/unicode.10font", nil, 0), FntR*NumSize+Verylarge => ("/fonts/lucida/unicode.14.font", nil, 0), ...... ...... }; Unfortunately, I got only Normal size of Japanese text. Kenji