mftrace is a small Python program that lets you trace a TeX bitmap font into a PFA or PFB font.
Version: 1.1.17mftrace is a small Python program that lets you trace a TeX bitmap font into a PFA or PFB font (A PostScript Type1 Scalable Font) or TTF (TrueType) font.
Operating System: Linux
Scalable fonts offer many advantages over bitmaps, as they allow documents to render correctly at many printer resolutions. Moreover, Ghostscript can generate much better PDF, if given scalable PostScript fonts.
mftrace project is licensed under the GNU GPL.
· A tracing program: autotrace >= 0.30
· Python–2.1 or later
· TeX–your tex installation should include
Install the prerequite packages. Then run
in the mftrace directory. Run as follows:
Command line options:
- -glyphs 1-10,50,55,90-100
- -grid gridsize
By default mftrace outputs trace-bug-FONTNAME-NUMBER.pbm and stops the process with a request to file a bugreport.
Sadly, many MF fonts contain resolution checks 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):
Mftrace uses kpathsea for finding fonts, so any kpathsea variable can be used to fine-tune which files should be loaded. For example, you can set MFINPUTS to specify which paths to search for .mf files.
Mftrace tries to fill in sensible values for the FontFamily, FullName and Weight fields. It does so by guessing values for the CM font series. For other fonts, it tries to read an AFM file (which is not likely to exist). Suggestions for a more generic way to handle this are welcome.
Additional options may be passed to the backend program (potrace or autotrace) with the MFTRACE_BACKEND_OPTIONS environment variable.