absolute path for fonts

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
web_artist

absolute path for fonts

Post by web_artist »

Hello,

I have 2 different servers, and on one of them, setting an absolute font like this: $draw->setFont('/home/var/www/public_html/fonts/font_name.ttf'); works, but on the other one it's not working. I don't get an error message, but instead a default font is set.

Any idea what I can do ? .. I think I should compile the image magick again on the server where the code doesn't work, but I'm not sure what parameters to add when redoing this.

Thank you.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: absolute path for fonts

Post by anthony »

Are you sure the font is present at that location, AND IS READABLE!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply