Your company here — click to reach over 10,000 unique daily visitors

mktexpk - Man Page

create a PK file for a font


mktexpk [options] font [redirect]


This manual page is not meant to be exhaustive.  The complete documentation for this version of T E X can be found in the info file or manual Kpathsea: A library for path searching.

mktexpk is used to generate a pk file from the METAFONT source files or type1 sources for font, if possible.

If redirect is given, it must be string of the form >&n where n is the number of the file descriptor which is to receive, instead of standard output, the name of the generated file.

mktexpk is typically called by other programs, rather than from the command line.


mktexpk accepts the following options:

--bdpi num

Set the base device resolution.

--dpi num

Generate the font at resolution num.


Print help message and exit.

--mag mag

The METAFONT magnification that corresponds to the combination of bdpi and dpi that has been specified.

--mfmode mode

The METAFONT mode to use.

--destdir dir

A directory name. If the directory is absolute, it is used as-is. Otherwise, it is appended to the root destination directory set in the script.


Print version information and exit.


If the mode is not specified, mktexpk tries to determine it from bdpi. The manner in which this is done is primitive.  Since bpdi doesn't provide sufficient information to uniquely determine a mode it is strongly recommended that it be specified explicitly.

If the mode and bpdi don't match, the mode is discarded.

The dpi parameter is redundant, but is not checked for consistency.  Worse, the program will fail if the wrong dpi is specified.

See Also

mktexmf(1), mktextfm(1).

Reporting Bugs

Report bugs to: tex-k@tug.org (https://lists.tug.org/tex-k)
T E X Live home page: https://tug.org/texlive/

Referenced By

dvilj(1), kpsewhich(1), mktexmf(1), mktextfm(1), xdvi(1).

30 January 2020 TeX Live