I am trying to create some pdf files for an online management system using DomPDF in laravel. It is showing squares instead of bangla letters. I tried using mpdf but it acts the same. I tried to load different true type bangla fonts using @font-face but nothing seems to work, and sometimes even show question marks instead of squares. Here is how my html file looks like-
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css">
body {
margin: 0;
font-size: 85%;
font-family: DejaVu Sans, Times Roman;
}
</style>
</head>
<body>
<p>স্টোর ম্যানেজমেন্ট সিস্টেম</p>
</body>
</html>
This is what the php code looks like
$pdf = PDF::loadView('test');
return $pdf->stream('test.pdf');
I am using mint 20 and lamp as my environment
