How To Install ftgl on CentOS 7

In this tutorial we learn how to install ftgl on CentOS 7. ftgl is OpenGL frontend to Freetype 2

Introduction

In this tutorial we learn how to install ftgl on CentOS 7.

What is ftgl

FTGL is a free open source library to enable developers to use arbitrary fonts in their OpenGL (www.opengl.org) applications. Unlike other OpenGL font libraries FTGL uses standard font file formats so doesn’t need a preprocessing step to convert the high quality font data into a lesser quality, proprietary format. FTGL uses the Freetype (www.freetype.org) font library to open and ‘decode’ the fonts. It then takes that output and stores it in a format most efficient for OpenGL rendering.

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

Install ftgl on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install ftgl

Install ftgl on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install ftgl

How To Uninstall ftgl on CentOS 7

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

sudo dnf remove ftgl

References

Summary

In this tutorial we learn how to install ftgl on CentOS 7 using yum and dnf.