I’m trying to make a box which contains 2 lines of text which have their own text properties using FPDF library :
I know i can use the multicell here,
but how about text property like text size and font family ?
This is my current code :
public function print()
{
$this->fpdf->AddPage('L',[100,150]);
$this->fpdf->SetFont('Arial','B',16);
$this->fpdf->MultiCell(130,8,utf8_decode('Material description :' . chr(10) . 'V-001940 LCMS AA001'),1);
$this->fpdf->Output();
}
my current output :
expected output :
Is it possible to do this ?
and also its strange that when im using the ‘n’ to insert breaks, nothing happened, hence i need to use this line of code instead :
utf8_decode('Material description :' . chr(10) . 'V-001940 LCMS AA001')
What is the solution ?

