Going through the CentOS documentation talked about two different services for rendering fonts in X, namely fontconfig and xfs. I performed the following steps to get the new fonts working.
- Create a new directory under /usr/share/fonts called imported so you will end up with something like /usr/share/fonts/imported
- Copy all your newly installable font files to the directory created in step 1.
- Open a terminal window and login as root.
- Issue the following command to get fontconfig to look at the new fonts.
- fc-cache /usr/share/fonts/imported
- To make xfs recognize the new fonts a few more steps are required. Each font directory must contain a fonts.dir file.
- To create a fonts.dir file, issue the following commands from within the /usr/share/fonts/imported directory.
- ttmkfdir -o fonts.scale
- mkfontdir
- chkfontpath –add /usr/share/fonts/imported/
- service xfs reload