MFTRACE(1)
π MFTRACE(1) β like, the manual page, bestie π
okay so you found mftrace in the General Commands Manual and you're like "what is this" β don't worry, I got you. sit down, grab a strawberry π, we're doing this.
β¨ NAME β¨
mftrace β it converts METAFONT format fonts into Type1 outline fonts. that's it. that's the whole job. iconic honestly π
πΈ SYNOPSIS πΈ
mftrace [options] fontname
π¦ DESCRIPTION π¦
so mftrace is a program that can convert a METAFONT font into a Type1 font. you literally just call it with the name of the font (and bestie, without a .mf suffix, ok? don't do that) and it produces a Type1 font file called either fontname.pfa or fontname.pfb depending on the command line options. and with the help of fontforge(1) it can produce other font formats too. versatile queen π
for tracing the bitmap, mftrace either uses potrace(1) or autotrace(1) β and it prefers potrace, the former, if it's available. this can be overridden with the --autotrace and --potrace command line options. slay, choices β¨
π OPTIONS π
this program follows the usual GNU command line syntax, with long options starting with two dashes (-). yes only two. one dash is for short options, we're not animals.
-k,--keepβ Keep all output in directorymftrace.dir. (yes that's the literal directory name, it's giving hoarder but make it organized π«Ά)--magnification=MAGβ The magnification to use for the PFA file. The default is1000. the tea here: the larger the magnification, the more precise the PFA file will be. but β and this is the important part β if the magnification is too large METAFONT can crash with overflow errors. π
Sadly, many MF fonts contain resolution checks like
if dots_per_inch * design_size > 1500:
This check is susceptible to overflow errors. Such code should be reported as a bug, and changed to
if dots_per_inch > (1500 / design_size):
like, write it down, screenshot it, send it to the font author, it's a whole thing π
--formats=FMT1,FMT2,...β Specify which formats to generate (default ispfa). Choices are:afm,pfa,pfb,ttf,svg. Note thatfontforgemust be installed to generate any format exceptpfaorpfb. And for generatingafmyou need eitherfontforgeorghostscript. so like, plan accordingly bestie π--simplifyβ This passes the created Type1 font tofontforgeto simplify and autohint it. glow-up service, essentially π--gffile=FILEβ Use generic font file FILE instead of running Metafont. (GF is the default output format of Metafont, iykyk.)-I DIR,--include=DIRβ Add DIR to the current path for searching files.--glyphs=LISTβ Process only these glyphs. LIST is a comma separated list of decimal numbers or ranges, for example1-10,50,55,90-100. cherry-picking, we love to see it π--tfmfile=FILEβ Use FILE for the TFM file. (The default is to usefontname.tfm.)-e ENC,--encoding=ENCβ Use encoding file ENC. Encoding files used bymftraceare basically in the GhostScript/dvips format, but you may use a special.notavailglyph name in order to tellmftracenot to process a specific glyph. If this option is not specified,mftracetries to determine the encoding file automatically, from the encoding specified in the TFM file, the default beingtex256.enc. so chill of it to figure it out itself π§--keep-tryingβ Try to continue if external programs called bymftracefail. If METAFONT crashes with overflow errors, but nevertheless outputs a GF file, try to process its output as is (useful for some buggy fonts, see above π). Ifpotraceorautotracefail to trace a specific character, first try it with a less smoothed curve, and if that fails, skip the character. By default,mftraceleaves a filetrace-bug-font-char.pbmand stops the process with a request to file a bugreport. so like, it's the "we don't give up" mode, main character energy π₯--dos-kpathβ Try to use MikTeX's version ofkpsewhich.--potraceβ Usepotracefor tracing bitmaps. The default is to usepotraceif it is found, otherwise to useautotrace.--autotraceβ Useautotracefor tracing bitmaps.--no-afmβ Don't read the AFM file to find font information.--noroundβ Do not round coordinates of control points to integer values (use with--grid). Disabled by default.--grid=GRIDβ Set reciprocal grid size in em units multiplied by ratio magnification/1000. For example,--grid 10 --magnification 1000rounds coordinates of control points to 1/10th of the em unit. Useful simultaneously with the--noroundoption. Default GRID value is1, i.e., round to integer. This option is only used withpotrace.-D,--define=SYMBOL=VALUEβ Set the font info SYMBOL to the given VALUE. For example,-DFamilyName=Foosets the font family name toFoo.mftracetries to fill in sensible default values for theFontName,FamilyName,FullNameandWeightfields. it's out here doing your homework for you π«Ά-V,--verboseβ Be verbose. talk to me, tell me everything π£οΈ-h,--helpβ Show summary of options.-v,--versionβ Show version of program.-w,--warrantyβ Show warranty and copyright.
π COPYRIGHT π
You may redistribute copies of mftrace under the terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law. (yes, all caps, they meant it, no cap.)
This manual page is copyright Β© 2005,2006,2007 Julian Gilbey and is distributed under the GNU General Public License too.
π SEE ALSO π
mf(1), autotrace(1), potrace(1), fontforge(1).
π AUTHOR π
mftrace was written by Han-Wen Nienhuys <hanwen@xs4all.nl>. This manual page was originally written by Julian Gilbey <jdg@debian.org> and has been revised by Werner Lemberg <wl@gnu.org>.
and that's the whole page bestie!! β¨ this was the MFTRACE(1) page from January 23, 2007 β yeah it's an elder but it's still serving π
go trace some fonts, you got this ππ¦π
π¦ where this page comes from
- debian bookworm: mftrace 1.2.20+git20191022.3b4bc2e-3 Β· GPL-2.0-only
- debian trixie: mftrace 1.2.20+git20191022.3b4bc2e-3 Β· GPL-2.0-only
- ubuntu jammy: mftrace 1.2.20+git20191022.3b4bc2e-2 Β· GPL-2.0-only
- ubuntu noble: mftrace 1.2.20+git20191022.3b4bc2e-3 Β· GPL-2.0-only
- ubuntu questing: mftrace 1.2.20+git20191022.3b4bc2e-3.1
- ubuntu resolute: mftrace 1.2.20+git20250330.c94ecaa-1 Β· GPL-2.0-only
- ubuntu stonking: mftrace 1.2.20+git20250330.c94ecaa-1 Β· GPL-2.0-only
- Copyright (c) 1999--2007 by the authors
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms