How To Install perl-Font-TTFMetrics on Fedora 36

In this tutorial we learn how to install perl-Font-TTFMetrics in Fedora 36. perl-Font-TTFMetrics is Parser for the TTF file

Introduction

In this tutorial we learn how to install perl-Font-TTFMetrics on Fedora 36.

What is perl-Font-TTFMetrics

Font true type font file contains several tables which need to be parsed before any useful information could be gathered about the font. There is the excellent module for parsing TTF font in CPAN by Martin Hosken, Font But in my opinion the use of Font font format. This module was written to support the use of TTF in Pastel 2D graphics library in Perl. Three factors prompted me to write this module first, I required a fast module to access TTF file. Second, all the access required was read-only. Last, I wanted a user friendly, higher level API to access TTF file.

We can use yum or dnf to install perl-Font-TTFMetrics on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Font-TTFMetrics.

Install perl-Font-TTFMetrics on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install perl-Font-TTFMetrics using dnf by running the following command:

sudo dnf -y install perl-Font-TTFMetrics

Install perl-Font-TTFMetrics on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-Font-TTFMetrics using yum by running the following command:

sudo yum -y install perl-Font-TTFMetrics

How To Uninstall perl-Font-TTFMetrics on Fedora 36

To uninstall only the perl-Font-TTFMetrics package we can use the following command:

sudo dnf remove perl-Font-TTFMetrics

perl-Font-TTFMetrics Package Contents on Fedora 36

/usr/share/doc/perl-Font-TTFMetrics
/usr/share/doc/perl-Font-TTFMetrics/Changes
/usr/share/doc/perl-Font-TTFMetrics/README
/usr/share/man/man3/Font::TTFMetrics.3pm.gz
/usr/share/perl5/vendor_perl/Font
/usr/share/perl5/vendor_perl/Font/TTFMetrics.pm

References

Summary

In this tutorial we learn how to install perl-Font-TTFMetrics on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).