MIKTEX-MF(1)
π NAME π
okay bestie, welcome to the MIKTEX-MF(1) page from the User Commands manual. This one is all about miktex-mf β METAFONT, a language for font and logo design. π
β¨
β¨ SYNOPSIS β¨
miktex-mf [option...] [[command...] | [file]]
πΈ DESCRIPTION πΈ
Quick heads-up: this man page is an adaption of the corresponding TeX Live man page. π
METAFONT reads the program in the specified files and outputs font rasters (in GF format) and font metrics (in TFM format). The METAFONT language is described in The METAFONTbook.
Like TeX, METAFONT is normally used with a large body of precompiled macros, and font generation in particular requires the support of several macro files. This version of METAFONT looks at its command line to see what name it was called under. Both inimf and virmf are links to the miktex-mf executable. When called as inimf (or when the --initialize option is given) it can be used to precompile macros into a .base file. When called as virmf it will use the plain base. When called under any other name, METAFONT will use that name as the name of the base to use. For example, when called as miktex-mf the mf base is used, which is identical to the plain base. Other bases than plain are rarely used. π
The commands given on the command line to the METAFONT program are passed to it as the first input line. (But it is often easier to type extended arguments as the first input line, since shells tend to gobble up or misinterpret METAFONTβs favorite symbols, like semicolons, unless you quote them.) As described in The METAFONTbook, that first line should begin with a filename, a \controlsequence, or a &basename. π«Ά
The normal usage is to say
miktex-mf \mode=printengine; input font
to start processing font.mf. (Or you can just say miktex-mf and give the other stuff on the next line.) Other control sequences, such as batchmode (for silent operation) can also appear. The name font will be the βjobnameβ, and is used in forming output file names. If METAFONT doesnβt get a file name in the first line, the job name is mfput. The default extension, .mf, can be overridden by specifying an extension explicitly. β¨
A log of error messages goes into the file jobname.log. The output files are jobname.tfm and jobname.numbergf, where number depends on the resolution and magnification of the font. The mode in this example is shown generically as printengine, a symbolic term for which the name of an actual device or, most commonly, the name localfont (see below) must be substituted. If the mode is not specified or is not valid, METAFONT will default to proof mode which produces large character images for use in font design and refinement. Proof mode can be recognized by the suffix .2602gf after the job name. Examples of proof mode output can be found in Computer Modern Typefaces (Volume E of Computers and Typesetting). The system of magsteps is identical to the system used by TeX, with values generally in the range 0.5, 1.0, 2.0, 3.0, 4.0 and 5.0. π
Magnification can also be specified not as a magstep but as an arbitrary value, such as 1.315, to create special character sizes.
Before font production can begin, it is necessary to set up the appropriate base files. The minimum set of components for font production for a given printengine is the plain.mf macro file and the local mode_def file. The macros in plain.mf can be studied in an appendix to The METAFONTbook; they were developed by Donald E. Knuth, and this file should never be altered except when it is officially upgraded. Each mode_def specification helps adapt fonts to a particular printengine. The local ones in use on this computer should be in modes.mf. π
The e response to METAFONTβs error-recovery prompt causes the default editor to start up at the current line of the current file. The configuration value [Core]Editor can be used to change the editor used. It may contain a string with %f indicating where the file name goes and %l indicating where the decimal line number (if any) goes. For example, an [Core]Editor string for emacs can be set with the command
> initexmf --set-config-value="[Core]Editor=emacs +%l%f"
A convenient file is null.mf, containing nothing. When METAFONT canβt find the file it thinks you want to input, it keeps asking you for another file name; responding null gets you out of the loop if you donβt want to input anything. π
π₯οΈ ONLINE GRAPHICS OUTPUT π₯οΈ
You can see METAFONTs output without printing. Chapter 23 of The METAFONTbook describes what you can do. You enable screen ouput by giving --screen on the command-line. π
π OPTIONS π
okay bestie, hereβs the full flag buffet, and yes, every single one is invited. π«Ά
--alias=nameβ pretend to be programname, i.e., set program (and memory dump) name toname. This may affect the search paths and other values used. Using this option is equivalent to copying the program file tonameand invokingname. β¨--aux-directory=dirβ setdiras the directory to which auxiliary files are written. Also look for input files indirfirst, before along the normal search path.--bistack-size=nβ set the size of the stack for bisection algorithms.--buf-size=nβ set the maximum number of characters simultaneously present in current lines of open files and in control sequences between\csnameand\endcsname. TeX uses the buffer to contain input lines, but macro expansion works by writing material into the buffer and reparsing the line. As a consequence, certain constructs require the buffer to be very large, even though most documents can be handled with a small value. π--c-style-errorsβ change the way error messages are printed. The alternate style looks like error messages from many compilers and is easier to parse for some editors.--disable-installerβ disable automatic installation of packages. Specifying this option overrules settings in the MiKTeX configuration data store.--dont-parse-first-lineβ disable checking whether the first line of the main input file starts with%&.--enable-installerβ enable automatic installation of packages. Specifying this option overrules settings in the MiKTeX configuration data store.--error-line=nβ set the width of context lines on terminal error messages.--half-error-line=nβ set the width of first lines of contexts in terminal error messages.--halt-on-errorβ quit after the first error.--helpβ give help and exit.--hhelpβ this option is only available on Windows systems: show the manual page in an HTML Help window and exit when the window is closed.--include-directory=dirβ add the directorydirto the head of the list of directories to be searched for input files.--initializeβ become the INI variant of the program.--interaction=modeβ set the interaction mode. Must be one ofbatchmode,scrollmodeanderrorstopmode. The meaning of these modes is the same as the corresponding commands.--job-name=nameβ set the name of the job (\jobname). This has an affect on the output file names.--job-time=fileβ set the time-stamp of all output files equal to π (the original line stops right there, bestie, so thatβs all we got).--lig-table-size=nβ set the maximum number of ligature/kern steps. Must be at least255and at most32510.--main-memory=nβ change the total size (in memory words) of the main memory array. Relevant only while creating memory dump files.--max-print-line=nβ set the width of longest text lines output; should be at least60.--max-strings=nβ set the maximum number of strings.--max-wiggle=nβ set the number of autorounded points per cycle.--move-size=nβ set the space for storing moves in a single octant.--no-c-style-errorsβ donβt change the way error messages are printed.--output-directory=dirβ write output files indirinstead of the current directory. Look up input files indirfirst, then along the normal search path.--param-size=nβ set the maximum number of simultaneous macro parameters.--parse-first-lineβ check whether the first line of the main input file starts with%&, and parse if it does. This can be used to specify extra command-line options.--path-size=nβ set the maximum number of knots between breakpoints of a path.--pool-size=nβ set the maximum number of characters in strings, including all error messages and help texts, and the names of all fonts and control sequences.--quietβ suppress all output, except errors.--record-package-usages=fileβ record all package usages and write them intofile.--recorderβ enable the file name recorder. This leaves a trace of the files opened for input and output in a file with the extension.fls.--screenβ enable screen output.--stack-size=nβ set the maximum number of simultaneous input sources.--string-vacancies=nβ set the minimum number of characters that should be available for the userβs control sequences and font names, after the compilerβs own error messages are stored. Must be at least25000less thanpool_size, but doesnβt need to be nearly that large.--tcx=tcxnameβ use thetcxnametranslation table to set the mapping of input characters and re-mapping of output characters.--time-statisticsβ show processing time statistics.--trace[=tracestreams]β enable trace messages. Thetracestreamsargument, if specified, is a comma-separated list of trace stream names (Chapter 9, Trace Streams).--undump=nameβ usenameas the name of the format to be used, instead of the name by which the program was called or a%&line.--versionβ show version information and exit.
π ENVIRONMENT π
These environment variables are lowkey important, bestie. π¦
MFINPUTSβ extra paths to locateMETAFONTinputandopeninfiles.MIKTEX_EDITORβ the editor to use when selectingein the error prompt menu. The value can contain these placeholders:%fβ the name of the file, which contains the erroneous line of TeX code.%lβ the line number.
MIKTEX_TRACEβ comma-separated list of trace stream names (see Chapter 9, Trace Streams). If this variable is set, then MiKTeX programs will write trace messages into the configured log sink.
π SEE ALSO π
978-0201134452. The METAFONTbook. Donald E. Knuth. Addison-Wesley. 1986.
mwah π this page was brought to you by MiKTeX 25.12, dated December 29, 2025. now go make some fonts, bestie β periodt. πβ¨
π¦ where this page comes from
- nixos 26.05: miktex 25.12
- nixpkgs unstable: miktex 25.12
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms