Tfpdf 字母重叠

Tfpdf letters overlapping

如题。我使用 tfpdf 在课程页面上生成证书。在我的本地开发环境中,它运行良好,但在服务器字母在一处重叠

$pdf = new tFPDF('L','pt','A4');
$pdf->AddFont($font,'','OpenSans-Regular.ttf',true);
$pdf->SetFont($font,'',14);

$pdf->SetTopMargin(20); $pdf->SetLeftMargin(20);
$pdf->SetRightMargin(20);
$pdf->AddPage();

// if(!empty($certificate_image)) {
//  $pdf->Image($certificate_image, 0, 0, 850, 600);
// }


$pdf->SetTextColor($certificate_color[0], $certificate_color[1],$certificate_color[2]);
$pdf->SetFont($font,'',60);
$pdf->SetXY(40,100);
$pdf->Multicell(760,50,$certificate_title,0,'C',0);

$pdf->SetTextColor($certificate_color[0], $certificate_color[1], $certificate_color[2]);
$pdf->SetFont($font,'',40);
$pdf->SetXY(40,205);
$pdf->Multicell(760,50,$username,0,'C',0);

$pdf->SetFont($font,'',17);
$pdf->SetXY(190,290);
$pdf->Multicell(460,24, $certificate_text);

$pdf->Output();

我解决了我的问题。是我用的字体文件的问题。