$pdf->SetFont sets the font to entire page but i want this font to be affected only to span tag.
require_once('../tcpdf.php');
$pdf = new TCPDF();
$pdf->AddPage('P', 'A4');
$fruit=$pdf->AddFont('fruit');
$html='<span '.$pdf->SetFont($fruit['family']).'>my text in bold</span>This isnormal';
$pdf->writeHTML($html, true, false, true, false, '');
$pdf->Output();