Jump to content

iimagettfbbox and font file on hosted server

Go to solution Solved by requinix,

Recommended Posts

I've been playing around with the iimagettfbbox function.


The PHP is running on a hosted unix server so I uploaded the TTF font to the same directory as my PHP and everything works.


Just curious if there is a way to access the "system" fonts so that I dont need to provide my own copy.




Link to post
Share on other sites

Locate the font file on the server and point to it in the function call - just like I did in the sample I posted for you yesterday




Link to post
Share on other sites
  • Solution

Find out what distro it is then Google the default font path. Might be in /usr/share. If there are any installed at all.


Or just ignore all that and upload the font you want. That's not bad or anything.

Link to post
Share on other sites
This thread is more than a year old.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.