aboutsummaryrefslogtreecommitdiff
path: root/ja/man/man1/tfmtodit.1
blob: 47c9978e2969e96b1ef32385d39b5eb53d3b8f5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
.ig \"-*- nroff -*-
Copyright (C) 1989-1995 Free Software Foundation, Inc.

Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission notice
are preserved on all copies.

Permission is granted to copy and distribute modified versions of this
manual under the conditions for verbatim copying, provided that the
entire resulting derived work is distributed under the terms of a
permission notice identical to this one.

Permission is granted to copy and distribute translations of this
manual into another language, under the above conditions for modified
versions, except that this permission notice may be included in
translations approved by the Free Software Foundation instead of in
the original English.
..
.\" jpman %Id: tfmtodit.1,v 1.2 1997/03/29 11:46:40 horikawa Stab %
.ie t .ds tx T\h'-.1667m'\v'.224m'E\v'-.224m'\h'-.125m'X
.el .ds tx TeX
.\" Like TP, but if specified indent is more than half
.\" the current line-length - indent, use the default indent.
.de Tp
.ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP
.el .TP "\\$1"
..
.TH TFMTODIT 1 "7 September 1996" "Groff Version 1.10"
.SH 名称
tfmtodit \- groff \-Tdvi で用いるフォントファイルを作成する
.SH 書式
.B tfmtodit
[
.B \-sv
]
[
.BI \-g gf_file
]
[
.BI \-k skewchar
]
.I tfm_file
.I map_file
.I font
.SH 解説
.B tfmtodit
は、
.B
groff \-Tdvi\fR
で用いるフォントファイルを作成します。
.I tfm_file 
は、フォント作成に用いる \*(tx のフォントメトリックファイル名です。
.I map_file
は
.B groff
での文字名を記述したファイルです。このファイルは、以下
の形式を持ちます。
.IP
.I
n c1 c2 \fR.\|.\|.
.LP
.I n
はフォント中での十進数で表した文字の位置、
.IR c1 ,
.IR c2 ,.\|.\|.
は groff での文字名を示します。
tfm ファイルに存在するが、groff では名前を持たない文字は groff
フォントファイルに名前のない文字として出力されます。
.I font
は、出力する groff フォントファイル名です。
.LP
特殊なフォント(カレントフォントの中に文字が見つからない場合に
検索されるフォントのこと)に対しては
.B \-s
オプションを指定する必要があります。
特殊なフォントは DESC ファイルの
.B fonts
コマンドで列挙します。特殊なフォント以外は列挙する必要はありません。
.B troff
がそのフォントを最初に使用したときに自動的にマウントできるからです。
.LP
数式を適切に処理するために、groff は tfm には含まれない
フォントメトリック情報を必要とします。
\*(tx は数式用のイタリックフォントを使用しますが、groff では、
通常のイタリックフォントを数式にも使用するからです。
groff が必要とする情報は、Metafont の Computer Modern fonts に
おける
.B math_fit 
マクロの 2 つの引数によって与えることができます。
Metafont は通常、テキストフォント(
.B math_fitting
が false)の処理中、これらの引数を無視します。
.B cm.base
を作成するときに以下の定義を
.B cmbase
のあとにロードすることによって、
テキストフォントのフォントメトリック情報を
gf ファイル中に出力するように Metafont に指示できます。
.IP
.nf
.ft B
def ignore_math_fit(expr left_adjustment,right_adjustment) =
    special "adjustment";
    numspecial left_adjustment*16/designsize;
    numspecial right_adjustment*16/designsize;
    enddef;
.fi
.ft R
.LP
この変更された
.B cm.base
を使って作成された gf ファイルは
.B \-g
オプションで指定します。
.B \-g
オプションは、
.I math_fitting
が true に設定されたフォントに対しては使用してはいけません。
.SH オプション
.TP
.B \-v
バージョン番号を表示します。
.TP
.B \-s
特殊なフォントであることを指定します。フォントファイルに 
.B special
コマンドを追加します。
.TP
.BI \-k n
フォント中の skewchar (斜めになった文字) の位置を指定します。
.I n 
は整数で、10 進数か、
.B 0
で始まる 8 進数か
.B 0x
で始まる 16 進数で指定します。本オプションで指定された文字が
カーニング処理の 2 文字目にきた場合、
カーニングを行わないようになります。
.TP
.BI \-g gf_file
Metafont で生成された gf ファイル
.I gf_file
を指定します。
この gf ファイルは special コマンドと numspecial コマンドを含み、
追加のフォントメトリック情報を与えます。
.SH 関連ファイル
.Tp \w'\fB/usr/share/groff_font/devdvi/DESC'u+2n
.B /usr/share/groff_font/devdvi/DESC
デバイス記述ファイル
.TP
.BI /usr/share/groff_font/devdvi/ F
フォント F のためのフォント記述ファイル
.SH 関連項目
.BR groff (1),
.BR grodvi (1),
.BR groff_font (5)