I want to use Baloo2 Google Font in mpdf to render the Hindi Language.
I'm trying to render the following:
चातुर्यकला त्रिवेदी
But it is rendered as
चातुर् यकला त् रविदी
The Code in my file is:
$html = ' आवेदक का नाम : चातुर्यकला त्रिवेदी';
$filename = 'demofile' . time() . '.pdf';
$mpdf = new \Mpdf\Mpdf([
'mode' => 'utf-8',
'default_font' => 'baloo',
]);
$mpdf->debug = true;
$mpdf->WriteHTML("p, td {font-family: baloo; color: transparent; white-space: pre; cursor: text; transform-origin: 0% 0%;}", 1);
$mpdf->WriteHTML($html);
$mpdf->Output($filename, 'D');
I've also copied the fonts in the ttfonts directory and also made changes to the fontVariables.php files as follows:
'fontdata' => [
"baloo" => [
'R' => "BalooRegular.ttf",
'useOTL' => 0xFF,
'useKashida' => 75,
]...
];
But I am getting this error in return:
GPOS Lookup Type 5, Format 3 not supported (ttfontsuni.php)
Can someone please help me with this?