#### Category : fonts

while I use Dompdf library to generate pdf it generate pdf perfectly as my expectation as following first image. but while I generate pdf with WKHTML with same format it slightly decreasing font spacing. please let me know it you have any solution. Thank you. pdf by DomPdf working fine enter image description here pdf ..

I am using Laravel Dompdf to generate PDF. Use Kalpurush font for Bangla text. Everything working well but text showing mismatch into PDF view. Lets example:Text should be আমি comes out like আ ম ি . I don’t know how can solve this problem. Already used UTF-8 charset. Here is my code sample $pdf = .. Read more I’m new to Laravel 8. Basically I have some custom fonts that I want to import them into my project, so I created a new folder called fonts inside resources/css/ which contains all my custom fonts (with format of eot,ttf,woff). After that created a new file also called admin.css in the same directory which contains: .. Read more I am using laravel dompdf for converting html string to pdf also tried view file. But pdf file shows some characters as "?". It is interesting that somewhere same character visible no problem but somewhere not visible. I followed the doc and created storage/fonts/ folder. html: body { margin: 0px; padding: 0px; font-family: DejaVu serif; .. Read more I use laravel with webpack.mix and I import public google font to app.scss file: @import url(‘https://fonts.googleapis.com/css2?family=Rubik:[email protected];400;500&display=swap’); (no one spaces or line breaks in this first string!) Webpack.mix command looks common: mix.js(‘resources/js/app.js’, ‘public/js’).sourceMaps() .sass(‘resources/sass/app.scss’, ‘public/css’); and translate this scss file to css. BUT in css I get: @import url(https://fonts.googleapis.com/css2?family=Rubik:[email protected]; 400;500&display=swap); What the hell this weird line .. Read more I am generating a PDF when a form is submitted. The language into the PDF I am using is English and Hindi. The problem is the Hindi font is not rending properly. I am using "Laravel 7", for pdf generation I am using "barryvdh/laravel-dompdf": "^0.8.6"," Laravel package. I have used UTF-8 encoding into my HTML. .. Read more Edited: Using laravel framework How do I cache font file instead of fetching a fresh copy everytime? Source: Laravel Sta.. Read more I am using niklasravnsborg/laravel-pdf to create a PDF file in Laravel. I’d like to use the Arial font however the font is not working.$pdf = PDF::loadView(‘blade’, \$data, [], [ ‘format’ => ‘A4-L’, ‘orientation’ => ‘L’ ]); Source: Laravel Sta..