.ig Copyright (C) 1994-2000, 2001 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. .. .\" $FreeBSD: doc/ja_JP.eucJP/man/man1/hpftodit.1,v 1.5 2001/07/29 05:14:51 horikawa Exp $ .\" 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" .. .\" WORD: left italic correction 左イタリック補正 .\" WORD: bounding box: バウンディングボックス [grops.1,psbb.1] .\" WORD: design unit: 設計単位 (XXX) .TH HPFTODIT 1 "6 August 2001" "Groff Version 1.17.2" .SH 名称 hpftodit \- groff \-Tlj4 で用いるフォント記述ファイルを作成する .SH 書式 .B hpftodit [ .B \-sv ] [ .BI \-i n ] .I tfm_file .I map_file .I font .PP .B \-i コマンド行オプションとそのパラメータの間には空白があっても構いません。 .SH 解説 .B hpftodit は、HP のタグ付きフォントメトリックファイルから .B groff \-Tlj4\fR で用いるフォントファイルを作成します。 .I tfm_file は、フォント作成に用いるタグ付きフォントメトリックファイル名です。 .I map_file は groff での文字名を記述したファイルです。 このファイルの各行は、下記のフォーマットから成ります。 .IP .I n c1 c2 \fR.\|.\|. .LP ここで、 .I n はその文字の MSL 番号を与える 10 進の整数で、 .IR c1 , .IR c2 ,.\|.\|. はその文字の groff 上の名前です。 .I font は、出力する groff フォントファイル名です。 groff フォントファイルは .IR font という名前のファイルに出力されます。 .LP 特別フォント (カレントフォントの中に文字が見つからない場合に 検索されるフォント) に対しては .B \-s オプションを指定する必要があります。 特別フォントは DESC ファイルの .B fonts コマンドで列挙します。特別フォント以外は列挙する必要はありません。 .B troff がそのフォントを最初に使用したときに自動的にマウントできるからです。 .LP .B \-i オプションが指定されていた場合、 .B hpftodit は各文字についてイタリック補正 (italic correction)、 左イタリック補正 (left italic correction) および 添字補正 (subscript correction) を自動生成します (これら補正パラメータの意味については、 .BR groff_font (5) を参照してください)。 .SH オプション .TP .B \-v バージョン番号を表示します。 .TP .B \-s 特別フォントであることを指定します。フォントファイルに .B special コマンドを追加します。 .TP .BI \-i n 各文字のイタリック補正を生成します。 文字幅とイタリック補正の和が、 .I n 設計単位と 「文字のバウンディングボックスの右端が文字の原点から どれだけ右にあるか」との和に等しくなるように イタリック補正が生成されます。 生成結果が負値になってしまう場合、 その値の代りに 0 がイタリック補正として使用されます。 Intellifont フォントでは、8782 設計単位で 1 em です。 .IP 同様に、各文字の添字補正も生成します。 そのフォントの傾斜パラメータの正接 (tangent) に そのフォントの x 方向の高さの 4/5 を掛けた値が、添字補正になります。 添字補正がイタリック補正より大きな値になってしまう 生成結果になった場合、 その値の代りにイタリック補正が添字補正として使用されます。 .IP 同様に、各文字の左イタリック補正も生成します。 左イタリック補正は、 .I n 設計単位と 「文字のバウンディングボックスの左端が文字の原点から どれだけ左にあるか」との和に等しくなるように生成されます。 左イタリック補正は、負値になる場合があります。 .IP このパラメータは、通常はイタリック (または斜体) フォント でのみ必要とされます。 .SH 関連ファイル .Tp \w'\fB/usr/share/groff_font/devlj4/DESC'u+2n .B /usr/share/groff_font/devlj4/DESC デバイス記述ファイル .TP .BI /usr/share/groff_font/devlj4/ F フォント .IR F のフォント記述ファイル .SH バグ .LP このプログラムは、タグ付きフォントメトリック形式に関する 完全で公式な文書の助けを受けずに書かれました。 そのため、テストに使用した Laserjet 4 の内蔵フォントに似ていない tfm ファイルを扱おうとすると失敗する可能性があります。 .LP TrueType tfm ファイルはサポートしていません。 .SH 関連項目 .BR groff (1), .BR grolj4 (1), .BR groff_font (5) . .\" Local Variables: .\" mode: nroff .\" End: