annotate man/mule/XFONT.texi @ 112:48d667d6f17f r20-1b8

Import from CVS: tag r20-1b8
author cvs
date Mon, 13 Aug 2007 09:20:48 +0200
parents 131b0175ea99
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
1 \input texinfo @c -*-texinfo-*-
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
2 @setfilename ../info/XFONT
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
3 @settitle X's FONT usage
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
4
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
5 @titlepage
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
6 @sp 6
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
7 @center @titlefont{X's FONT usage for novice users}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
8 @sp 4
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
9 @center Version 2.0
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
10 @sp 5
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
11 @center Ken'ichi HANDA
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
12 @center handa@@etl.go.jp
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
13 @page
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
14
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
15 @end titlepage
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
16
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
17 @node Top, , , (mule)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
18 @section X's FONT usage
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
19
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
20 This document descrives X's FONT usage for novice users.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
21
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
22 @menu
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
23 * Font path:: How to set font path?
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
24 * Building fonts:: How to build new fonts?
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
25 * Getting fonts:: How to get fonts?
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
26 * Font selection: (mule) FONT. Mule's font selection mechanism
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
27 @end menu
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
28
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
29 @node Font path, Building fonts, , Top
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
30 @section Setting font path
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
31
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
32 To run Mule as a client of X, X's font is required for each
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
33 character set (e.g. GB2312 [Chinese], JISX0208 [Japanese]).
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
34 The fonts you can use on your X server are listed by the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
35 command @code{xlsfonts}.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
36 @quotation
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
37 @code{% xlsfonts | egrep -i gb2312}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
38 @end quotation
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
39 will show you fonts for Chinese (GB).
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
40 @quotation
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
41 @code{% xlsfonts | egrep -i jisx0208}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
42 @end quotation
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
43 will show you fonts for Japanese.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
44 @quotation
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
45 @code{% xlsfonts | egrep -i ksc5601}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
46 @end quotation
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
47 will show you fonts for Korean.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
48 @quotation
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
49 @code{% xlsfonts | egrep -i big5}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
50 @end quotation
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
51 will show you fonts for Big5.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
52
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
53 If you can't find necessary fonts, check your 'Font Path' by:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
54 @quotation
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
55 @code{% xset q}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
56 @end quotation
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
57
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
58 Under the default setting of X.V11R5, fonts for Japanese and
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
59 Korean are in the directory /usr/lib/X11/fonts/misc. If
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
60 these directories are not in your Font Path, put them in by:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
61 @quotation
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
62 @code{% xset fp+ /usr/lib/X11/fonts/misc}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
63 @end quotation
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
64 If there are no such directories, you must create X's font
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
65 from BDF files by yourself @xref{Building fonts}.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
66
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
67 Now, you can run Mule on X. If you want to use different
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
68 fonts than defaults, you can specify them by command line
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
69 switch or your X's resource file (try `man mule' or look
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
70 into the file `mule/etc/mule.1').
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
71
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
72 @node Building fonts, Getting fonts, Font path, Top
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
73 @section Building fonts
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
74
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
75 X.V11R5 is distributed with many fonts (BDF format). Those
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
76 are under X.V11R5/mit/fonts/bdf/misc:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
77 @quotation
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
78 jiskan16.bdf, jiskan24.bdf (Japanese)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
79 hanglm16.bdf, hanglm24.bdf (Korean)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
80 @end quotation
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
81 and under X.V11R5/contrib/clients/cxterm/fonts:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
82 @quotation
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
83 cclib16st.bdf, cclib24st.bdf (Chinese GB)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
84 hku-ch16.bdf (Chinese Big5)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
85 @end quotation
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
86 To create fonts from these files, you'd better make a
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
87 directory for them (say ${font}):
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
88 @example
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
89 % mkdir ${font}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
90 % cd ${font}
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
91 % bdftopcf xxx/jiskan24.bdf >jiskan24.pcf
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
92 % bdftopcf yyy/hanglm24.bdf >hanglm24.pcf
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
93 ...
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
94 % mkfontdir
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
95 % xset fp+ `pwd`
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
96 @end example
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
97
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
98 Now you can check if you are really able to use these fonts by
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
99 'xlsfonts' command. You must use 'bdftosnf' instead of
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
100 'bdftopcf' if you are using X.V11R4.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
101
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
102 @node Getting fonts, , Building fonts, Top
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
103 @section How to get fonts?
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
104
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
105 Mule requires more fonts than in the distribution of
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
106 X.V11R5. For instance, in the case of using EGG with cWnn's
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
107 cserver, font for SiSheng characters is necessary. The
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
108 directory `fonts' under the ftp directory of Mule contains
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
109 those fonts.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
110
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
111 @contents
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
112 @bye