Php 无法使Times New Roman字体与mpdf 6配合使用

Php 无法使Times New Roman字体与mpdf 6配合使用,php,Php,所有配置都是默认的,因为它是在mpdf 6.0中定义的 结果我得到了字体系列:“无衬线”;在输出pdf文件中 $mpdf=new mPDF('utf-8','A4','','timesnewroman',20,15,58,25,20,10); body {font-family: "Times New Roman", Times, serif; font-size: 10pt; } 我想这会有帮助的 我想这会有帮助的 body { font-family: ctimes; }

所有配置都是默认的,因为它是在mpdf 6.0中定义的

结果我得到了字体系列:“无衬线”;在输出pdf文件中

$mpdf=new mPDF('utf-8','A4','','timesnewroman',20,15,58,25,20,10);
body {font-family: "Times New Roman", Times, serif;
    font-size: 10pt;
}
我想这会有帮助的

我想这会有帮助的

body {
    font-family: ctimes;
}