Here is an example. How can I add the font that I downloaded. How is the process?
$pdf = new FPDI();
$pdf->AddPage();
$pdf->setSourceFile('sample source of the template.pdf');
$tplIdx = $pdf->importPage(1);
$pdf->useTemplate($tplIdx, 0, 0, 210);
$pdf->AddFont('japanesefontnameSample', '', 'japaneseFontsample.ttf', true);
$pdf->SetFont('japanesefontnameSample');
$pdf->SetFontSize(12);
$pdf->SetXY(20, 23);
$pdf->SetTextColor(0, 0, 0);