How To Install mftrace on Fedora 34

mftrace is Utility for converting TeX bitmap fonts to Type 1 or TrueType fonts

Introduction

In this tutorial we learn how to install mftrace on Fedora 34.

What is mftrace

mftrace 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. 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.

We can use yum or dnf to install mftrace on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install mftrace.

Install mftrace on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install mftrace using dnf by running the following command:

sudo dnf -y install mftrace

Install mftrace on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install mftrace using yum by running the following command:

sudo yum -y install mftrace

How To Uninstall mftrace on Fedora 34

To uninstall only the mftrace package we can use the following command:

sudo dnf remove mftrace

mftrace Package Contents on Fedora 34

/usr/bin/gf2pbm
/usr/bin/mftrace
/usr/lib/.build-id
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/d1df6083101644b3ca29a8fabb9e63e8b51994
/usr/share/doc/mftrace
/usr/share/doc/mftrace/ChangeLog
/usr/share/doc/mftrace/README.txt
/usr/share/licenses/mftrace
/usr/share/licenses/mftrace/COPYING
/usr/share/man/man1/mftrace.1.gz
/usr/share/mftrace
/usr/share/mftrace/__pycache__
/usr/share/mftrace/__pycache__/afm.cpython-39.pyc
/usr/share/mftrace/__pycache__/tfm.cpython-39.pyc
/usr/share/mftrace/afm.py
/usr/share/mftrace/tfm.py

References

Summary

In this tutorial we learn how to install mftrace on Fedora 34 using yum and dnf.