mpdf not supporting arabic and chinese fonts

后端 未结 5 1791
伪装坚强ぢ
伪装坚强ぢ 2020-12-31 16:57

I am using mpdf. When I supplied the arabic and chinese words to the WriteHtml(), the resulting pdf containing square boxes instead of those fonts.

Please suggest!

5条回答
  •  遥遥无期
    2020-12-31 17:36

    On mPDF 6.0, we found this made Cantonese work for us:

    $mpdf->autoScriptToLang = true;
    $mpdf->autoLangToFont = true;
    

    Seems SetAutoFont is now deprecated.

提交回复
热议问题