Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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