-
-
Notifications
You must be signed in to change notification settings - Fork 726
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
imagettfbbox(): Could not find/open font #423
Comments
Hi @LeQuangKhai99 what version are you using? The current version checks if the path to the font exists (this happens in Label::create) while the imagettfbbox method is called later, when writing the image. So it appears that the font does exist but it can't be opened. Please put a debug statement in the LoadImageData class just before the imagettfbbox method and tell me what |
Hi @endroid, file_exists($label->getFont()->getPath()) return true. |
Thank you. And the output of the path please. And could you try using realpath() around the path, like And if that does not work, what does |
@endroid I'm sorry, i was installed this package to another project and it work well. I think i will uninstall and try again. Thanks! |
Np, glad to hear your problem is solved! |
I have error
It error when i add label. It seems like it can't read the default font file
The text was updated successfully, but these errors were encountered: