fonttools command not found

In this troubleshooting guide we learn how to fix fonttools command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

fonttools: command not found

or when using sudo you get the following error message

sudo: fonttools: command not found

Solutions to fonttools: command not found

How To Fix fonttools: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu fonttools is provided by fonttools package.

fonttools is:

FontTools/TTX is a library to manipulate font files from Python. It supports reading and writing of TrueType/OpenType fonts, reading and writing of AFM files, reading (and partially writing) of PS Type 1 fonts. It also contains a tool called “TTX” which converts TrueType/OpenType fonts to and from an XML-based format.

This provides the executables of fontTools package.

To fix this problem, we can install more using the command below.

sudo apt-get -y install fonttools

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install fonttools.

sudo apt -y install fonttools

Or if you have aptitude installed you can use the following command.

sudo aptitude install fonttools

Summary

In this tutorial we learn how to fix fonttools command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.