sulla classe ......
Codice PHP:
class PDF_MC_Table extends FPDF
{
.......
[COLOR=red]function SetFonts($w)
{
//Set the array of column fonts
$this->fonts=$w;
}[/COLOR]
function Row($data)
{
.......
//Draw the border
$this->Rect($x,$y,$w,$h);
//Print the text
[COLOR=red]
if (isset($this->fonts[$i]) $this->SetFont(fonts[$i][0],fonts[$i][1],fonts[$i][2]);
[/COLOR]
$this->MultiCell($w,5,$data[$i],0,$a);
//Put the position to the right of the cell
.....
}
}
modifiche in rosso!
poi su stampa.php devi aggiungere una cosa tipo:
Codice PHP:
$f=array(array('Arial','',10),array('Arial','B',10),array('Arial','',10),array('Arial','',10));
$this->SetFonts($f);