Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am writing a PHP script which needs to use True Type Fonts as the default ones bundled with the GD library aren't really useful in a professional application. In order to specify which font I intend to use I must specify the full path to the font. Unfortunately I am unsure what that is.

How do I find the path to the fonts on my server?

My server is CentOS 4.8 running cPanel.


locked by HopelessN00b Mar 13 '15 at 18:47

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

closed as off-topic by HopelessN00b Mar 13 '15 at 18:46

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 1 down vote accepted

you could try 'rpm -qa | grep font' (from a terminal window - I'm pretty sure cpanel has that feature). It will output a couple packages that have font in the name.

Then from that output use (you can try for each package):

rpm -ql somepackage-font

To list all the files/directoires associated with that font package - this should list all the font directories. Hope this helps.


Not the answer you're looking for? Browse other questions tagged or ask your own question.