LinuxCommandLibrary

afmtodit

Adobe font metrics to groff font description converter

TLDR

Convert AFM file to groff font

$ afmtodit [font.afm] [textmap] [fontname]
copy
Include kerning information
$ afmtodit -k [font.afm] [textmap] [fontname]
copy
Convert with encoding file
$ afmtodit -e [encoding.enc] [font.afm] [textmap] [fontname]
copy

SYNOPSIS

afmtodit [-ckmnsvx] [-a n] [-d desc] [-e enc] [-f name] [-i n] [-o out] afm-file map-file font

DESCRIPTION

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.

PARAMETERS

-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

CAVEATS

Requires valid AFM files from the font vendor. The text map file must correctly map PostScript glyph names. Output is specific to groff's PostScript driver.

HISTORY

afmtodit is part of GNU groff, developed since 1989. It enables the use of PostScript fonts in groff documents, extending the typesetting system beyond its original font set.

SEE ALSO

groff(1), addftinfo(1), pfbtops(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community