⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chinese-cxwin.html

📁 学习linux的工具书
💻 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>
&nbsp;
<br>&nbsp;<a href="http://studio.sinet.net.cn">Chinese X Window System</a>
Release 0.5 for XFree 86
<br>&nbsp;
<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>&nbsp;&nbsp; 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>&nbsp;&nbsp; Download the chinese fonts and install it properly. The
default fonts
<br>&nbsp;&nbsp; used is sun-song for GB, taipei15/16/k20/k24 for BIG5
system. These
<br>&nbsp;&nbsp; fonts can be download from <a href="ftp://studio.sinet.net.cn">studio.sinet.net.cn</a>.
<br>&nbsp;&nbsp;&nbsp;&nbsp; /pub/chinese/GB/fonts/sun-song/ sun-song GB
font
<br>&nbsp;&nbsp;&nbsp;&nbsp; /pub/chinses/GB/fonts/gb4big5/ BIG5 font but
display GB character
<br>&nbsp;&nbsp; Add "xset +fp &lt;fontdir>" to your /usr/X11R6/lib/X11/xinit/xinitrc.
<br>&nbsp;&nbsp; If you want to merge these fonts or other fonts into one
directory,
<br>&nbsp;&nbsp; first merge the fonts.alias if available, the run mkfontdir
under the
<br>&nbsp;&nbsp; new directory.
<p>2. TTF font install.
<br>&nbsp;&nbsp; Download "ttmkfdir", copy any TTF to server, run "ttmkfdir
> fonts.scale",
<br>&nbsp;&nbsp; then run mkfontdir, add it to fontpath. If you want to
complie the
<br>&nbsp;&nbsp; ttmkfdir source, first download and install freetype-1.1.tar.gz,
the
<br>&nbsp;&nbsp; rebuild the ttmkfdir-zh.tar.gz.
<p>II. Install Xserver
<br>===================
<br>&nbsp;&nbsp; First, you must install and config XFree86-3.3.2 properly.
Then download
<br>&nbsp;&nbsp; the proper X server you used, replace the one under your
/usr/X11R6/bin/.
<br>&nbsp;&nbsp; Then create the /etc/X11/ChineseConfig, the format is:
<br>&nbsp;&nbsp;&nbsp; CodingSystem [GB/GB12345/BIG5]
<br>&nbsp;Font [size/width] fontname
<br>&nbsp;Scale [Yes|No|Auto] fontname
<br>&nbsp;&nbsp; All font name can contain "*","?" wild card. all lines
beginning with
<br>&nbsp;&nbsp; '#', ';' treat as comment.
<p>III. Compile source by yourself
<br>===============================
<br>1. Compiling X server.
<br>&nbsp;&nbsp; If you want to compile the servers by yourself, first
you must Download
<br>&nbsp;&nbsp; the X332servonly.tgz, and apply the jumbo patch. Then
type "make World"
<br>&nbsp;&nbsp; under the "xc" directory. Be sure xc/config/cf/site.def
has "HasServerLocale"
<br>&nbsp;&nbsp; defined, if you remove it, also removed the CXWIN support.
If you already
<br>&nbsp;&nbsp; execute "Make World", after apply this patch, you must
re-make the World.
<br>&nbsp;&nbsp; You needn't freetype-1.1 or xfsft-1.0.2 for compiling
Xserver or font
<br>&nbsp;&nbsp; server, it already included in the jumbo patch.
<p>2. Compiling font server
<br>&nbsp;&nbsp; If you use TTF font server support, you must compile whole
XFree86 source
<br>&nbsp;&nbsp; instead just the server only code. Allthough fontserver
seems a good
<br>&nbsp;&nbsp; idea, but we suggest you only use it for western font.
Chinese font have
<br>&nbsp;&nbsp; large amount characters, should use by Xserver's on-demand
reasterise
<br>&nbsp;&nbsp; feature, instead load it all in font server and transfer
it.
<p>3. Compiling ttmkfdir
<br>&nbsp;&nbsp; You need install freetype-1.1 first. Then download ttmkfdir-zh.tar.gz,
<br>&nbsp;&nbsp; extract and "make", that's all. You the default "Makefile"
don't meet
<br>&nbsp;&nbsp; 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>&nbsp;&nbsp; these applications calculate the character width locally
or per byte.
<br>&nbsp;&nbsp; Although the chinese may work under normal xterm, Netscape,
vi... but we
<br>&nbsp;&nbsp; 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>&nbsp;&nbsp; enough matrix font for normal use, and few TTF font for
backup:
<br>&nbsp;Font *song-medium*
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Scale *simsun*
<p>TODO and wish list:
<br>1. Chinese Input Extension.
<br>2. TTF font smooth.
<p>Changes:
<br>June 17 1998
<br>&nbsp;Fix XDrawText with multiple string, which cause incompatible
<br>&nbsp;with StarOffice.
<p>November 2 1998
<br>&nbsp;Fix a dead loop problem.
<br>&nbsp;Constant width font align correctly.
<p>Movember 16 1998
<br>&nbsp;Chinese TTF font support.
<br>&nbsp;Dynamic rebuild font table and reload config file.
<p>Reference:
<br>&nbsp;freetype-1.1 David Turner
<br>&nbsp; <a href="http://www.freetype.org">http://www.freetype.org</a>
<br>&nbsp;xfsft-1.0.2 Juliusz Chroboczek jec@dcs.ed.ac.uk
<br>&nbsp; <a href="http://www.physiol.med.tu-muenchen.de/~robert/freetype.html">http://www.physiol.med.tu-muenchen.de/~robert/freetype.html</a>
<br>&nbsp;ttmkfdir&nbsp; 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 &lt;<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 &lt;shi@shi.phy.okstate.edu>
<br>&nbsp;
<br>&nbsp;
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -