GD library imagettftext () prompt cannot open font file

do I feel the path is right? Why is it always prompted that the font file cannot be opened?

Php
Mar.15,2021

I'm not sure what the problem is. Give me a debugging idea

.
  1. check the parameters and FAQs against the official documentation. It seems to have been said in the document that there is a space in the gd lower version + path, which will cause the font not to be found in the report. Although there is no space in this, the Chinese path is not recommended.
  2. check the font permissions to see if they are editable. I remember seeing it in the properties. If not, find a font with editable attributes and try again, such as the open source font should be fine.
  3. Try writing the
  4. path directly. Absolutely. But it shouldn't be a big problem here.

Thank you for the invitation!

1 `./`  `../` 
2 

        dirname(__FILE__) . '/fonts/micross.ttf'

I haven't seen anything on the plane these days. Sorry

Menu