#!/bin/bash # cd to your fonts directory and run this script to # make it a valid and usable font resource for X # Make sure you have ttmkfdir installed. # rename all the files to lowercase for i in *; do mv "$i" "$(echo $i | tr '[:upper:]' '[:lower:]')" done # create fonts.scale ttmkfdir -o fonts.scale # create fonts.dir mkfontdir # make the fonts available to X if this path is in # a FontPath directive in xorg.conf or XFree86Config # etc. xset fp rehash