0
votes

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.

1

1 Answer 1

1
vote

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 .