<?php
require('fpdf/mbfpdf.php');

$pdf=new MBFPDF('P', 'mm', 'A4');
$pdf->AddMBFont(GOTHIC ,'SJIS');
$pdf->AddPage();
$pdf->SetFont(GOTHIC,'',20);

$pdf->Write(10,'線の太さ');
$pdf->SetDrawColor(0, 128, 0);
$pdf->Line(10.0, 20.0, 120.0, 20.0);
$pdf->SetLineWidth(1.0);
$pdf->Line(10.0, 30.0, 120.0, 30.0);
$pdf->SetLineWidth(2.0);
$pdf->Line(10.0, 40.0, 120.0, 40.0);

$pdf->SetLineWidth(7.0);
$pdf->SetDrawColor(255, 0, 0);
$pdf->Line(50.0, 50.0, 80.0, 90.0);
$pdf->SetDrawColor(0, 255, 0);
$pdf->Line(50.0, 50.0, 20.0, 90.0);
$pdf->SetDrawColor(0, 0, 255);
$pdf->Line(80.0, 90.0, 20.0, 90.0);

$pdf->SetLineWidth(2.0);
$pdf->SetDrawColor(0, 0, 255);
$pdf->SetFillColor(255, 218, 185);
$pdf->Rect(120.0, 70.0, 50.0, 30.0, 'DF');

$pdf->Output();
?>