📄 chinese-cxwin.html
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Author" content="Edward Fu">
<meta name="GENERATOR" content="Mozilla/4.05 [zh-CN] (X11; I; Linux 2.1.127 i686) [Netscape]">
<title>Freesoft Linux FAQ -- 中文Xwindow</title>
</head>
<body>
<br> <a href="http://studio.sinet.net.cn">Chinese X Window System</a>
Release 0.5 for XFree 86
<br>
<br>This is a patch against XFreee86 3.3.2. Feature:
<br>1. Map any chinese character in an ISO font to a chinese font. Wertern
<br> application can support chinese without any modification.
<br>2. constant width font alignment.
<br>3. Chinese TTF support, both western, GB, BIG5, native/unicode font.
<br>4. Automatic reload config file and rebuild font table.
<br>5. Automatic search available font if no configured font available.
<br>5. Scale TTF font for better match.
<p>Installation Guide:
<br>I. Install Chinese Font
<br>=======================
<br>1. Matrix font intall.
<br> Download the chinese fonts and install it properly. The
default fonts
<br> used is sun-song for GB, taipei15/16/k20/k24 for BIG5
system. These
<br> fonts can be download from <a href="ftp://studio.sinet.net.cn">studio.sinet.net.cn</a>.
<br> /pub/chinese/GB/fonts/sun-song/ sun-song GB
font
<br> /pub/chinses/GB/fonts/gb4big5/ BIG5 font but
display GB character
<br> Add "xset +fp <fontdir>" to your /usr/X11R6/lib/X11/xinit/xinitrc.
<br> If you want to merge these fonts or other fonts into one
directory,
<br> first merge the fonts.alias if available, the run mkfontdir
under the
<br> new directory.
<p>2. TTF font install.
<br> Download "ttmkfdir", copy any TTF to server, run "ttmkfdir
> fonts.scale",
<br> then run mkfontdir, add it to fontpath. If you want to
complie the
<br> ttmkfdir source, first download and install freetype-1.1.tar.gz,
the
<br> rebuild the ttmkfdir-zh.tar.gz.
<p>II. Install Xserver
<br>===================
<br> First, you must install and config XFree86-3.3.2 properly.
Then download
<br> the proper X server you used, replace the one under your
/usr/X11R6/bin/.
<br> Then create the /etc/X11/ChineseConfig, the format is:
<br> CodingSystem [GB/GB12345/BIG5]
<br> Font [size/width] fontname
<br> Scale [Yes|No|Auto] fontname
<br> All font name can contain "*","?" wild card. all lines
beginning with
<br> '#', ';' treat as comment.
<p>III. Compile source by yourself
<br>===============================
<br>1. Compiling X server.
<br> If you want to compile the servers by yourself, first
you must Download
<br> the X332servonly.tgz, and apply the jumbo patch. Then
type "make World"
<br> under the "xc" directory. Be sure xc/config/cf/site.def
has "HasServerLocale"
<br> defined, if you remove it, also removed the CXWIN support.
If you already
<br> execute "Make World", after apply this patch, you must
re-make the World.
<br> You needn't freetype-1.1 or xfsft-1.0.2 for compiling
Xserver or font
<br> server, it already included in the jumbo patch.
<p>2. Compiling font server
<br> If you use TTF font server support, you must compile whole
XFree86 source
<br> instead just the server only code. Allthough fontserver
seems a good
<br> idea, but we suggest you only use it for western font.
Chinese font have
<br> large amount characters, should use by Xserver's on-demand
reasterise
<br> feature, instead load it all in font server and transfer
it.
<p>3. Compiling ttmkfdir
<br> You need install freetype-1.1 first. Then download ttmkfdir-zh.tar.gz,
<br> extract and "make", that's all. You the default "Makefile"
don't meet
<br> your environment, you must change it by yourself.
<p>Notes:
<br>1. Any applications didn't support double byte charset may not work!
Because
<br> these applications calculate the character width locally
or per byte.
<br> Although the chinese may work under normal xterm, Netscape,
vi... but we
<br> still seggest you installing cxterm or cvi, set Netscape
charset to GB.
<br>2. Some broken font may crash Xserver and ttmkfdir.
<br>3. "Scale Auto" very slow if too many scalable font installed. Please
configure
<br> enough matrix font for normal use, and few TTF font for
backup:
<br> Font *song-medium*
<br> Scale *simsun*
<p>TODO and wish list:
<br>1. Chinese Input Extension.
<br>2. TTF font smooth.
<p>Changes:
<br>June 17 1998
<br> Fix XDrawText with multiple string, which cause incompatible
<br> with StarOffice.
<p>November 2 1998
<br> Fix a dead loop problem.
<br> Constant width font align correctly.
<p>Movember 16 1998
<br> Chinese TTF font support.
<br> Dynamic rebuild font table and reload config file.
<p>Reference:
<br> freetype-1.1 David Turner
<br> <a href="http://www.freetype.org">http://www.freetype.org</a>
<br> xfsft-1.0.2 Juliusz Chroboczek jec@dcs.ed.ac.uk
<br> <a href="http://www.physiol.med.tu-muenchen.de/~robert/freetype.html">http://www.physiol.med.tu-muenchen.de/~robert/freetype.html</a>
<br> ttmkfdir Joerg Pommnitz pommnitz@darmstadt.gmd.de
<br>You can report any relate problem to these authurs.
<p>Any problem, bugs, suggestion, send to Samuel Leo <<a href="mailto:samuel@szonline.net">samuel@szonline.net</a>>,
<br>or UpLoad to <a href="ftp://studio.sinet.net.cn/incoming/">ftp://studio.sinet.net.cn/incoming/</a>
and let me know.
<p>Thanks to:
<br>Shi Junren <shi@shi.phy.okstate.edu>
<br>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -