如何在pdf文件的mpdf库中访问mangal字体..它在这里无法正常工作我很累了..请帮助我
<?php
include ("vendor/autoload.php");
$mpdf = new \Mpdf\Mpdf();
$mpdf->allow_charset_conversion=true; // Set by default to TRUE
$mpdf->charset_in='windows-1252';
$html = '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<table class="table">
<tr>
<td>अथॉरिटी का नाम:<span>*</span></label></td>
<td>hello how ru</td>
</tr>
<tr>
<td><label> आवेदक का नाम <span>*</span></label></td>
<td>hiii</td>
</tr></table>';
$mpdf->Bookmark('Start of the document');
$mpdf->WriteHTML($html);
$mpdf->Output();
?>
结果: ??????? ?? ???:* 嘿你好吗 ?????? ?? ??? * hiii
输出get:
您好,您好吗? 上一个:hiii