Webhosting Blog

Adding Fonts on the linux server.


In order to add TTF fonts on the linux server you can follow following simple steps.

1) Login to the server as root.

2) Navigate to the folder /usr/share/fonts/.

[root@server~] # cd /usr/share/fonts/

3)Now add a new folder for the TTF fonts.

[root@server fonts]# mkdir TTF-Fonts

4) If you have the fonts located on the server you can copy them to this TTF-Fonts Folder or you can simply download them in this folder via wget.

5)Now run following commands on the server for making the fonts available on the server.

[root@server~]# mkfontdir  /usr/share/fonts/TTF-fonts

Above command will add the file fonts.dir to the new fonts folder.

Issue following command to add the new fonts path on the server.

[root@server~]# chkfontpath -a /usr/share/fonts/TTF-fonts

Thats it! You can now use the newly added fonts on the server.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s