Install and configure Unicode TrueType fonts in Linux
Uncompress the downloaded font archive to a directory and add it to the font path, a list of directories containing fonts:
Uncompress the archive
# tar xvzf utf8.tar.gz
or
# tar xvjf arial.tar.bz2
Create a directory for new fonts
# mkdir /usr/share/fonts/truetype
Move the uncompressed font files to the new font directory
# mv *.ttf /usr/share/fonts/truetype
Navigate to the font directory
# cd /usr/share/fonts/truetype
Create fonts.scale and fonts.dir
# mkfontscale && mkfontdir
# fc-cache
Add the new font directory to the X11 font path
# chkfontpath --add /usr/share/fonts/truetype
Restart X font server
# /sbin/service xfs restart
You can verify the successful addition of the new path by running chkfontpath command or by listing X font server's /etc/X11/XF86Config file.
If you do not have root access, copy the *.ttf to ~/.fonts directory instead.
Make X11 fonts available to Java
Perform one of the following:
Open /etc/profile and add a new environment variable
JAVA_FONTS=/usr/share/fonts/truetype
export JAVA_FONTS
Open font.properties file under jre/lib directory, uncommnent and set to the appropriate font directory
appendedfontpath=/usr/share/fonts/truetype