-
-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Warning: imagettfbbox(): Could not find/open font in phar #519
Comments
You need to be aware that the file system works differently in a PHAR:
I am not 100% sure what your path should be (it's been a while since I had to deal with this issue) but it looks weird that you got an absolute path resolving to the PHAR file (i.e.
|
Thanks @theofidry, now I try the two possible ways! |
@theofidry if i change the path of the font file to relative works correctly! if(ENV_PHAR) {
# use the relative path
} else {
# use the absolute path
} Thanks |
Apologies for the late reply. Hopefully you found your answer meanwhile. I added a doc entry for it still: https://github.com/box-project/box/blob/master/doc/faq.md#detecting-that-you-are-inside-a-phar |
Bug report
The compilation is successful and if I go to check the extracted dir all the content is correct, but if I go to use the phar it tells me that it cannot find a font file.
Below is a small screen where I also added a var_dump of the path of the processed file.
Where am I doing wrong?
Thanks
The text was updated successfully, but these errors were encountered: