Linux command
afmtodit 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Convert
afmtodit [font.afm] [textmap] [fontname]
Example
afmtodit -k [font.afm] [textmap] [fontname]
Example
afmtodit -e [encoding.enc] [font.afm] [textmap] [fontname]
说明
afmtodit converts Adobe Font Metrics (AFM) files to font description files suitable for use with the groff typesetting system. It creates the font metrics files that groff's PostScript driver needs to properly position and space characters when typesetting documents. The tool maps PostScript glyph names to groff character names using a user-supplied map file, and can include kerning pairs and ligature information in the output. It also supports synthetic transformations such as oblique slanting, making it possible to generate italic variants from roman font metrics without a separate AFM file.
参数
- -a _n_
- Slant angle for synthetic oblique fonts
- -c
- Include unnamed characters
- -d _file_
- DESC file for device resolution
- -e _file_
- Encoding file specifying character order
- -f _name_
- Internal font name
- -i _n_
- Italic correction values
- -k
- Include kerning information
- -m
- Prevent font name guessing
- -n
- No ligatures
- -o _file_
- Output file name
- -s
- Treat as special font
- -v
- Print version
FAQ
What is the afmtodit command used for?
afmtodit converts Adobe Font Metrics (AFM) files to font description files suitable for use with the groff typesetting system. It creates the font metrics files that groff's PostScript driver needs to properly position and space characters when typesetting documents. The tool maps PostScript glyph names to groff character names using a user-supplied map file, and can include kerning pairs and ligature information in the output. It also supports synthetic transformations such as oblique slanting, making it possible to generate italic variants from roman font metrics without a separate AFM file.
How do I run a basic afmtodit example?
Run `afmtodit [font.afm] [textmap] [fontname]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a _n_ do in afmtodit?
Slant angle for synthetic oblique fonts