tfmtodit.man revision 79543
179543Sru.ig 279543SruCopyright (C) 1989-2000, 2001 Free Software Foundation, Inc. 375584Sru 475584SruPermission is granted to make and distribute verbatim copies of 575584Sruthis manual provided the copyright notice and this permission notice 675584Sruare preserved on all copies. 775584Sru 875584SruPermission is granted to copy and distribute modified versions of this 975584Srumanual under the conditions for verbatim copying, provided that the 1075584Sruentire resulting derived work is distributed under the terms of a 1175584Srupermission notice identical to this one. 1275584Sru 1375584SruPermission is granted to copy and distribute translations of this 1475584Srumanual into another language, under the above conditions for modified 1575584Sruversions, except that this permission notice may be included in 1675584Srutranslations approved by the Free Software Foundation instead of in 1775584Sruthe original English. 1875584Sru.. 1975584Sru.ie t .ds tx T\h'-.1667m'\v'.224m'E\v'-.224m'\h'-.125m'X 2075584Sru.el .ds tx TeX 2175584Sru.\" Like TP, but if specified indent is more than half 2275584Sru.\" the current line-length - indent, use the default indent. 2375584Sru.de Tp 2475584Sru.ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP 2575584Sru.el .TP "\\$1" 2675584Sru.. 2775584Sru.TH TFMTODIT @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@" 2875584Sru.SH NAME 2975584Srutfmtodit \- create font files for use with groff \-Tdvi 3075584Sru.SH SYNOPSIS 3175584Sru.nr a \n(.j 3275584Sru.ad l 3375584Sru.nr i \n(.i 3475584Sru.in +\w'\fBtfmtodit 'u 3575584Sru.ti \niu 3675584Sru.B tfmtodit 3775584Sru.de OP 3875584Sru.ie \\n(.$-1 .RI "[\ \fB\\$1\fP" "\\$2" "\ ]" 3975584Sru.el .RB "[\ " "\\$1" "\ ]" 4075584Sru.. 4175584Sru.OP \-sv 4275584Sru.OP \-g gf_file 4375584Sru.OP \-k skewchar 4475584Sru.I tfm_file 4575584Sru.I map_file 4675584Sru.I font 4775584Sru.br 4875584Sru.ad \na 4975584Sru.PP 5075584SruIt is possible to have whitespace between a command line option and its 5175584Sruparameter. 5275584Sru.SH DESCRIPTION 5375584Sru.B tfmtodit 5475584Srucreates a font file for use with 5575584Sru.B 5675584Srugroff \-Tdvi\fR. 5775584Sru.I tfm_file 5875584Sruis the name of the \*(tx font metric file for the font. 5975584Sru.I map_file 6075584Sruis a file giving the groff names for characters in the font; 6175584Sruthis file should consist of a sequence of lines of the form: 6275584Sru.IP 6375584Sru.I 6475584Srun c1 c2 \fR.\|.\|. 6575584Sru.LP 6675584Sruwhere 6775584Sru.I n 6875584Sruis a decimal integer giving the position of the character in the font, 6975584Sruand 7075584Sru.IR c1 , 7175584Sru.IR c2 ,.\|.\|. 7275584Sruare the groff names of the character. 7375584SruIf a character has no groff names but exists in the tfm file, 7475584Sruthen it will be put in the groff font file as an unnamed character. 7575584Sru.I font 7675584Sruis the name of the groff font file. 7775584SruThe groff font file is written to 7875584Sru.IR font . 7975584Sru.LP 8075584SruThe 8175584Sru.B \-s 8275584Sruoption should be given if the font is special 8375584Sru(a font is 8475584Sru.I special 8575584Sruif 8675584Sru.B troff 8775584Srushould search it whenever 8875584Srua character is not found in the current font.) 8975584SruIf the font is special, 9075584Sruit should be listed in the 9175584Sru.B fonts 9275584Srucommand in the DESC file; 9375584Sruif it is not special, there is no need to list it, since 9475584Sru.B troff 9575584Srucan automatically mount it when it's first used. 9675584Sru.LP 9775584SruTo do a good job of math typesetting, groff requires 9875584Srufont metric information not present in the tfm file. 9975584SruThe reason for this is that \*(tx has separate math italic fonts 10075584Sruwhereas groff uses normal italic fonts for math. 10175584SruThe additional information required by groff is given by the 10275584Srutwo arguments to the 10375584Sru.B math_fit 10475584Srumacro in the Metafont programs for the Computer Modern fonts. 10575584SruIn a text font (a font for which 10675584Sru.B math_fitting 10775584Sruis false), Metafont normally ignores these two arguments. 10875584SruMetafont can be made to put this information in the gf file 10975584Sruby loading the following definition after 11075584Sru.B cmbase 11175584Sruwhen creating 11275584Sru.BR cm.base : 11375584Sru.IP 11475584Sru.nf 11575584Sru.ft B 11675584Srudef ignore_math_fit(expr left_adjustment,right_adjustment) = 11775584Sru special "adjustment"; 11875584Sru numspecial left_adjustment*16/designsize; 11975584Sru numspecial right_adjustment*16/designsize; 12075584Sru enddef; 12175584Sru.fi 12275584Sru.ft R 12375584Sru.LP 12475584SruThe gf file created using this modified 12575584Sru.B cm.base 12675584Srushould be specified with the 12775584Sru.B \-g 12875584Sruoption. 12975584SruThe 13075584Sru.B \-g 13175584Sruoption should not be given for a font for which 13275584Sru.B math_fitting 13375584Sruis true. 13475584Sru.SH OPTIONS 13575584Sru.TP 13675584Sru.B \-v 13775584SruPrint the version number. 13875584Sru.TP 13975584Sru.B \-s 14075584SruThe font is special. 14175584SruThe effect of this option is to add the 14275584Sru.B special 14375584Srucommand to the font file. 14475584Sru.TP 14575584Sru.BI \-k n 14675584SruThe skewchar of this font is at position 14775584Sru.IR n . 14875584Sru.I n 14975584Srushould be an integer; 15075584Sruit may be given in decimal, 15175584Sruor with a leading 15275584Sru.B 0 15375584Sruin octal, 15475584Sruor with a leading 15575584Sru.B 0x 15675584Sruin hexadecimal. 15775584SruThe effect of this option is to ignore any kerns whose second component 15875584Sruis the specified character. 15975584Sru.TP 16075584Sru.BI \-g gf_file 16175584Sru.I gf_file 16275584Sruis a gf file produced by Metafont containing special and numspecial 16375584Srucommands giving additional font metric information. 16475584Sru.SH FILES 16575584Sru.Tp \w'\fB@FONTDIR@/devdvi/DESC'u+2n 16675584Sru.B @FONTDIR@/devdvi/DESC 16775584SruDevice description file. 16875584Sru.TP 16975584Sru.BI @FONTDIR@/devdvi/ F 17075584SruFont description file for font 17175584Sru.IR F . 17275584Sru.SH "SEE ALSO" 17375584Sru.BR groff (@MAN1EXT@), 17475584Sru.BR grodvi (@MAN1EXT@), 17575584Sru.BR groff_font (@MAN5EXT@) 17679543Sru. 17779543Sru.\" Local Variables: 17879543Sru.\" mode: nroff 17979543Sru.\" End: 180