LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

afmtodit

Adobe font metrics to groff font description converter

TLDR

Convert AFM file to groff font
$ afmtodit [font.afm] [textmap] [fontname]
copy
Generate italic corrections (in thousandths of an em)
$ afmtodit -i [50] [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 includes kerning pairs and ligature information in the output by default. It also computes a slant parameter (from the AFM ItalicAngle or the -a option) that groff uses when positioning accents over italic glyphs.

PARAMETERS

-a n

Slant value written to the font file, used by groff to position accents (default: negative ItalicAngle from the AFM file).
-c
Include identifying comments for the PostScript font in the output.
-d file
Use an alternate device description (DESC) file instead of the default.
-e file
Reencode the PostScript font using the given encoding file.
-f name
Internal name of the groff font.
-i n
Generate italic and subscript corrections from n (in thousandths of an em).
-k
Omit kerning data; use only for monospaced (constant-width) fonts.
-m
Prevent negative left italic correction values.
-n
Do not output a ligatures command; use for monospaced fonts.
-o file
Output file name
-s
Mark the font as special.
-v
Print version information and exit.
-x
Do not use the built-in Adobe Glyph List.

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)

RESOURCES

Copied to clipboard
Kai