Font path



I am using a piece of PhP code that creates a dynamic image of text for user registration as spam prevention.

what is the correct font path to use if I have shared hosting account?

<?php Header ("Content-type: image/gif"); $im = imagecreate (440, 110); $black = ImageColorAllocate ($im, 255, 255, 255); $white = ImageColorAllocate ($im, 76, 203, 91); //please adjust the font path! ImageTTFText ($im, 42, 0, 0, 50, $white, "/usr/share/fonts/truetype/msttcorefonts/parryhotter.ttf","pigflu"); ImageGif ($im); ImageDestroy ($im); ?>


The path is right, what I can’t see installed is that font… you can use other? In fact I don’t see other than ttf-bitstream-vera family installed on the machine I’m. I don’t know if can be installed either of if you can install on your own home dir.


Somewhere, something incredible is waiting to be known.


You can create a fonts directory and upload your own.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


Thank you for the help. I thought the fonts had to be “installed” on local machine. I will use my own font directory then.