-
-
Notifications
You must be signed in to change notification settings - Fork 982
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
Set the DOMPDF instance in Font_Metrics class. #27
Conversation
Avoid error like `file_get_contents(/assets/my_font.woff): failed to open stream: No such file or directory` in `vendor/dompdf/dompdf/include/font_metrics.cls.php`. Requirement: the pull request dompdf/dompdf#796 need to be merged in DomPDF repositiory.
So we have to wait before that PR is merged and a new release is tagged? |
It'll be OK if you merge this pull request now, but to take effect, the dompdf/dompdf#796 need to be merged then, like you said, a new DOMPDF release need to be tagged. Sorry for my bad English. |
And when does this issue occur? Do you have a small testcase so I can recreate this issue? I've never encountered this before.. |
Of course, in your CSS file, if you have things like this: @font-face {
font-family: 'Glyphicons Halflings';
src: url(/assets/fonts/glyphicons-halflings-regular.woff);
} |
Doesn't |
Yes, it work, but I share my CSS file with the web application and the generated PDF files.
It should, my pull request fix this behavior for font URLs. |
Okay, and using the asset() function in Laravel? That should work for both cases. |
The font URL isn't generated in a PHP file, so I can't use the |
Okay I thought you were using it in a Blade template or something like that. |
OK, I will. |
Closing this untill further updates. |
Hi Barry, I have same error notification when using
file_put_contents(/web/myapp/app/storage/fonts/f96df7d9f56dfb0fe8f0443fe52ee191.ttf): failed to open stream: No such file or directory
/web/myapp/vendor/dompdf/dompdf/include/font_metrics.cls.php
In my Views I use Google Font |
Hello Barry, I have the same provblem like azulkipli, please help |
Avoid error like
file_get_contents(/assets/my_font.woff): failed to open stream: No such file or directory
invendor/dompdf/dompdf/include/font_metrics.cls.php
.Requirement: the pull request dompdf/dompdf#796 need to be merged in DomPDF repositiory and a new release tagged.