You are here: Matthew KENWORTHY > Nelse > Adding Fonts in Fedora

Adding Fonts in Fedora


Locally adding fonts and making Fedora use them.

Make a local '.fonts' directory, add the font as a TTF font, and run 'fc-cache ~/.fonts/'

mkdir ~/.fonts/
cp FONT.ttf ~/.fonts/
fc-cache ~/.fonts/

To convert from OpenType font to TrueType fonts, install ''fontforge'', copy and create this script as otf2ttf.sh

#!/usr/local/bin/fontforge
# Quick and dirty hack: converts a font to truetype (.ttf)
Print("Opening "+$1);
Open($1);
Print("Saving "+$1:r+".ttf");
Generate($1:r+".ttf");
Quit(0);

Run fontforge with:

fontforge -script otf2ttf.sh FONT.otf

References: