Linux command
tfmtodit 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Create a font description file
tfmtodit [tfm_file] [map_file] [font]
Create a special font
tfmtodit -s [tfm_file] [map_file] [font]
Use a gf file
tfmtodit -g [gf_file] [tfm_file] [map_file] [font]
Specify a skew character
tfmtodit -k [skewchar] [tfm_file] [map_file] [font]
Display the version
tfmtodit -v
说明
tfmtodit creates font description files for use with groff's DVI output device. It converts TeX Font Metrics (TFM) files into the format required by groff. The _tfm_file_ is the TeX font metric file for the font. The _map_file_ assigns groff character identifiers to glyph indices in the font, consisting of lines in the form `i c1 ... cn` where i is the glyph position and c1 through cn are glyph identifiers. Output is written in groff_font(5) format to the specified _font_ file. For math typesetting, groff requires additional font metric information not present in TFM files. This is because TeX uses separate math italic fonts while groff uses normal italic fonts for math. The additional information comes from the math_fit macro arguments in Metafont programs for Computer Modern fonts.
参数
- -s
- Add the special directive to the font description file. Use when the font should be searched whenever a glyph is not found in the current font.
- -g _gf_file_
- Use the gf file produced by Metafont containing special and numspecial commands to obtain additional font metric information.
- -k _skewchar_
- Specify the skew character position. Any kerns whose second component is the skew character are ignored. May be given in decimal, octal (leading 0), or hexadecimal (leading 0x).
- -v
- Print the version number and exit.
FAQ
What is the tfmtodit command used for?
tfmtodit creates font description files for use with groff's DVI output device. It converts TeX Font Metrics (TFM) files into the format required by groff. The _tfm_file_ is the TeX font metric file for the font. The _map_file_ assigns groff character identifiers to glyph indices in the font, consisting of lines in the form `i c1 ... cn` where i is the glyph position and c1 through cn are glyph identifiers. Output is written in groff_font(5) format to the specified _font_ file. For math typesetting, groff requires additional font metric information not present in TFM files. This is because TeX uses separate math italic fonts while groff uses normal italic fonts for math. The additional information comes from the math_fit macro arguments in Metafont programs for Computer Modern fonts.
How do I run a basic tfmtodit example?
Run `tfmtodit [tfm_file] [map_file] [font]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -s do in tfmtodit?
Add the special directive to the font description file. Use when the font should be searched whenever a glyph is not found in the current font.