change font

This commit is contained in:
wlx 2014-03-03 07:58:43 +00:00
parent 9578c74bb0
commit 8d529553e2
2 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ class ApplicantPDF extends FPDI
$tplidx = $this->importPage(1); $tplidx = $this->importPage(1);
$this->addPage(); $this->addPage();
$this->useTemplate($tplidx); $this->useTemplate($tplidx);
$this->SetFont('ugb','',$this->fontsize); $this->SetFont('Times','',$this->fontsize);
$this->setXY(62,41); $this->setXY(62,41);
$this->Write($this->fontsize,$this->data['realname']); $this->Write($this->fontsize,$this->data['realname']);
$this->SetXY(34,55); $this->SetXY(34,55);
@ -79,13 +79,13 @@ class ApplicantPDF extends FPDI
function addRef($mds) function addRef($mds)
{ {
$this->addPage(); $this->addPage();
$this->SetFont('','B',20); $this->SetFont('Times','B',20);
$this->ln(); $this->ln();
$this->Cell(0,0,'Attachment: Data Citation',0,2,'C'); $this->Cell(0,0,'Attachment: Data Citation',0,2,'C');
$this->setY(30); $this->setY(30);
foreach($mds as $i=>$md) foreach($mds as $i=>$md)
{ {
$this->SetFont('ugb','',12); $this->SetFont('Times','',12);
$this->Write(5,($i+1).'. '.$md['title']); $this->Write(5,($i+1).'. '.$md['title']);
$this->ln(); $this->ln();
if ($md['reference']) if ($md['reference'])
@ -115,7 +115,7 @@ class ApplicantPDF extends FPDI
} }
if ($md['suppinfo'] || $md['fund']) if ($md['suppinfo'] || $md['fund'])
{ {
$this->SetFont('','I',10); $this->SetFont('Times','I',10);
$p=(!empty($md['fund']))?$md['fund']:$md['suppinfo']; $p=(!empty($md['fund']))?$md['fund']:$md['suppinfo'];
$this->Write(5,'[Funding] '.$p); $this->Write(5,'[Funding] '.$p);
$this->ln(); $this->ln();

Binary file not shown.