summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202019-09-25 12:35:31 +0530
committerSashi202019-09-25 12:35:31 +0530
commitd4d9b75c2b78362eb05a6fbd288acc855ec3ec0b (patch)
tree6837361738e4495a3bae10a670b0e6cee23c728e
parent6aab8b83745440e23c92b13aa0e3d02e88952d6d (diff)
downloadom_pssp-d4d9b75c2b78362eb05a6fbd288acc855ec3ec0b.tar.gz
om_pssp-d4d9b75c2b78362eb05a6fbd288acc855ec3ec0b.tar.bz2
om_pssp-d4d9b75c2b78362eb05a6fbd288acc855ec3ec0b.zip
Modify font from cmr to times
-rwxr-xr-xpdf/cert_new.inc23
-rw-r--r--pdf/fpdf/font/cmr10.php25
-rw-r--r--pdf/fpdf/font/cmr10.zbin17865 -> 0 bytes
-rw-r--r--pdf/fpdf/font/cmtt.php40
-rw-r--r--pdf/fpdf/font/cmtt10.php25
-rw-r--r--pdf/fpdf/font/cmtt10.zbin18015 -> 0 bytes
6 files changed, 11 insertions, 102 deletions
diff --git a/pdf/cert_new.inc b/pdf/cert_new.inc
index a58c8c9..9981950 100755
--- a/pdf/cert_new.inc
+++ b/pdf/cert_new.inc
@@ -41,40 +41,39 @@ function generate_pdf()
echo "Error!";
} //!$pdf
$pdf->AddPage();
- $pdf->AddFont('Cmr10','','cmr10.php');
$image_bg = $mpath . "/pdf/images/bg_cert.png";
$pdf->Image($image_bg, 0, 0, $pdf->w, $pdf->h);
$pdf->SetMargins(18, 1, 18);
$path = drupal_get_path('module', 'om_pssp');
- $pdf->Ln(45);
- $pdf->SetFont('Cmr10', '', 14);
+ $pdf->Ln(50);
+ $pdf->SetFont('Times', '', 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(240, 8, 'This is to certify that', '0', '1', 'C');
$pdf->Ln(0);
- $pdf->SetFont('Cmr10', '', 16);
+ $pdf->SetFont('Times', 'I', 16);
$pdf->SetTextColor(37, 22, 247);
$contributor_name = WordWrap($data3->contributor_name,70);
$pdf->MultiCell(240, 8, $data3->name_title . '. ' . $contributor_name, '0', 'C');
$pdf->Ln(0);
- $pdf->SetFont('Cmr10', '', 14);
+ $pdf->SetFont('Times', '', 14);
$title = WordWrap($data3->project_title,160);
$university = WordWrap('from ' . $data3->university . ' has successfully contributed under the ', 160);
$pdf->SetTextColor(0, 0, 0);
- $pdf->MultiCell(240, 8, $university . 'OPENMODELICA POWER SYSTEMS SIMULATION PROJECT.', '0','C');
+ $pdf->MultiCell(240, 8, $university . 'OpenModelica Power Systems Simulation Project.', '0','C');
$pdf->Ln(0);
$pdf->Cell(240, 8, 'He/She has created the following simulation', '0', '1', 'C');
$pdf->SetTextColor(37, 22, 247);
- $pdf->SetFont('Cmr10','',16);
+ $pdf->SetFont('Times','I',16);
$pdf->MultiCell(240, 8, $title, '0', 'C');
$pdf->SetTextColor(0, 0, 0);
- $pdf->SetFont('Cmr10','',14);
+ $pdf->SetFont('Times','',14);
$pdf->Cell(240, 8, 'using OpenModelica. The code is available at ', '0', '', 'C');
$pdf->SetTextColor(0, 0, 0);
$pdf->Ln(8);
- $pdf->SetX(90);
- $pdf->SetFont('Cmr10', '', 'U');
+ $pdf->SetX(94);
+ $pdf->SetFont('Times', 'I', 'U');
$pdf->SetTextColor(37, 22, 247);
- $pdf->write(5, 'https://om.fossee.in/powersystems/pssp', 'https://om.fossee.in/powersystems/pssp');
+ $pdf->write(8, 'https://om.fossee.in/powersystems/pssp', 'https://om.fossee.in/powersystems/pssp');
$pdf->Ln(0);
$proposal_get_id = 0;
$UniqueString = "";
@@ -114,7 +113,7 @@ function generate_pdf()
$pdf->SetX(300);
$pdf->Ln(30);
$pdf->Image($pngAbsoluteFilePath, $pdf->GetX()+70 , $pdf->GetY() + 55, 28,28, 0);
- $pdf->SetFont('Cmr10', '', 14);
+ $pdf->SetFont('Times', '', 14);
$pdf->Ln(48);
$pdf->SetX(95);
$pdf->SetTextColor(0, 0, 0);
diff --git a/pdf/fpdf/font/cmr10.php b/pdf/fpdf/font/cmr10.php
deleted file mode 100644
index 39ac2ea..0000000
--- a/pdf/fpdf/font/cmr10.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-$type = 'TrueType';
-$name = 'Cmr10';
-$desc = array('Ascent'=>705,'Descent'=>-206,'CapHeight'=>705,'Flags'=>32,'FontBBox'=>'[-44 -250 1009 750]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>750);
-$up = -65;
-$ut = 10;
-$cw = array(
- chr(0)=>750,chr(1)=>750,chr(2)=>750,chr(3)=>750,chr(4)=>750,chr(5)=>750,chr(6)=>750,chr(7)=>750,chr(8)=>750,chr(9)=>750,chr(10)=>750,chr(11)=>750,chr(12)=>750,chr(13)=>750,chr(14)=>750,chr(15)=>750,chr(16)=>750,chr(17)=>750,chr(18)=>750,chr(19)=>750,chr(20)=>750,chr(21)=>750,
- chr(22)=>750,chr(23)=>750,chr(24)=>750,chr(25)=>750,chr(26)=>750,chr(27)=>750,chr(28)=>750,chr(29)=>750,chr(30)=>750,chr(31)=>750,' '=>333,'!'=>277,'"'=>500,'#'=>833,'$'=>500,'%'=>833,'&'=>777,'\''=>277,'('=>388,')'=>388,'*'=>500,'+'=>777,
- ','=>277,'-'=>333,'.'=>277,'/'=>500,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>277,';'=>277,'<'=>277,'='=>777,'>'=>472,'?'=>472,'@'=>777,'A'=>750,
- 'B'=>708,'C'=>722,'D'=>763,'E'=>680,'F'=>652,'G'=>784,'H'=>750,'I'=>361,'J'=>513,'K'=>777,'L'=>625,'M'=>916,'N'=>750,'O'=>777,'P'=>680,'Q'=>777,'R'=>736,'S'=>555,'T'=>722,'U'=>750,'V'=>750,'W'=>1027,
- 'X'=>750,'Y'=>750,'Z'=>611,'['=>277,'\\'=>500,']'=>277,'^'=>500,'_'=>277,'`'=>277,'a'=>500,'b'=>555,'c'=>444,'d'=>555,'e'=>444,'f'=>305,'g'=>500,'h'=>555,'i'=>277,'j'=>305,'k'=>527,'l'=>277,'m'=>833,
- 'n'=>555,'o'=>500,'p'=>555,'q'=>527,'r'=>391,'s'=>394,'t'=>388,'u'=>555,'v'=>527,'w'=>722,'x'=>527,'y'=>527,'z'=>444,'{'=>500,'|'=>1000,'}'=>500,'~'=>500,chr(127)=>750,chr(128)=>750,chr(129)=>750,chr(130)=>750,chr(131)=>750,
- chr(132)=>750,chr(133)=>750,chr(134)=>750,chr(135)=>750,chr(136)=>750,chr(137)=>750,chr(138)=>750,chr(139)=>750,chr(140)=>750,chr(141)=>750,chr(142)=>750,chr(143)=>750,chr(144)=>750,chr(145)=>750,chr(146)=>750,chr(147)=>750,chr(148)=>750,chr(149)=>750,chr(150)=>750,chr(151)=>750,chr(152)=>750,chr(153)=>750,
- chr(154)=>750,chr(155)=>750,chr(156)=>750,chr(157)=>750,chr(158)=>750,chr(159)=>750,chr(160)=>333,chr(161)=>625,chr(162)=>833,chr(163)=>777,chr(164)=>694,chr(165)=>666,chr(166)=>750,chr(167)=>722,chr(168)=>777,chr(169)=>722,chr(170)=>777,chr(171)=>750,chr(172)=>750,chr(173)=>722,chr(174)=>583,chr(175)=>555,
- chr(176)=>555,chr(177)=>833,chr(178)=>833,chr(179)=>277,chr(180)=>305,chr(181)=>500,chr(182)=>500,chr(183)=>500,chr(184)=>500,chr(185)=>500,chr(186)=>750,chr(187)=>444,chr(188)=>500,chr(189)=>722,chr(190)=>777,chr(191)=>500,chr(192)=>902,chr(193)=>1013,chr(194)=>777,chr(195)=>277,chr(196)=>500,chr(197)=>750,
- chr(198)=>750,chr(199)=>750,chr(200)=>750,chr(201)=>750,chr(202)=>750,chr(203)=>750,chr(204)=>750,chr(205)=>750,chr(206)=>750,chr(207)=>750,chr(208)=>750,chr(209)=>750,chr(210)=>750,chr(211)=>750,chr(212)=>750,chr(213)=>750,chr(214)=>750,chr(215)=>750,chr(216)=>750,chr(217)=>750,chr(218)=>750,chr(219)=>750,
- chr(220)=>750,chr(221)=>750,chr(222)=>750,chr(223)=>750,chr(224)=>750,chr(225)=>750,chr(226)=>750,chr(227)=>750,chr(228)=>750,chr(229)=>750,chr(230)=>750,chr(231)=>750,chr(232)=>750,chr(233)=>750,chr(234)=>750,chr(235)=>750,chr(236)=>750,chr(237)=>750,chr(238)=>750,chr(239)=>750,chr(240)=>750,chr(241)=>750,
- chr(242)=>750,chr(243)=>750,chr(244)=>750,chr(245)=>750,chr(246)=>750,chr(247)=>750,chr(248)=>750,chr(249)=>750,chr(250)=>750,chr(251)=>750,chr(252)=>750,chr(253)=>750,chr(254)=>750,chr(255)=>750);
-$enc = 'cp1252';
-$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
-$file = 'cmr10.z';
-$originalsize = 25880;
-$subsetted = true;
-?>
diff --git a/pdf/fpdf/font/cmr10.z b/pdf/fpdf/font/cmr10.z
deleted file mode 100644
index 72341e6..0000000
--- a/pdf/fpdf/font/cmr10.z
+++ /dev/null
Binary files differ
diff --git a/pdf/fpdf/font/cmtt.php b/pdf/fpdf/font/cmtt.php
deleted file mode 100644
index 5d07049..0000000
--- a/pdf/fpdf/font/cmtt.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-$type='Core';
-$name='Cmtt10';
-$desc=array('Ascent'=>623,'Descent'=>-239,'CapHeight'=>611,'Flags'=>32,'FontBBox'=>'[-6 -233 625 698]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>750);
-$up=-65;
-$ut=10;
-$dw=525;
-$cw=array(
-0=>750,1=>750,2=>750,3=>750,4=>750,5=>750,6=>750,7=>750,8=>750,9=>750,
-10=>750,11=>750,12=>750,13=>750,14=>750,15=>750,16=>750,17=>750,18=>750,19=>750,
-20=>750,21=>750,22=>750,23=>750,24=>750,25=>750,26=>750,27=>750,28=>750,29=>750,
-30=>750,31=>750,32=>525,33=>525,34=>525,35=>525,36=>525,37=>525,38=>525,39=>525,
-40=>525,41=>525,42=>525,43=>525,44=>525,45=>525,46=>525,47=>525,48=>525,49=>525,
-50=>525,51=>525,52=>525,53=>525,54=>525,55=>525,56=>525,57=>525,58=>525,59=>525,
-60=>525,61=>525,62=>525,63=>525,64=>525,65=>525,66=>525,67=>525,68=>525,69=>525,
-70=>525,71=>525,72=>525,73=>525,74=>525,75=>525,76=>525,77=>525,78=>525,79=>525,
-80=>525,81=>525,82=>525,83=>525,84=>525,85=>525,86=>525,87=>525,88=>525,89=>525,
-90=>525,91=>525,92=>525,93=>525,94=>525,95=>525,96=>525,97=>525,98=>525,99=>525,
-100=>525,101=>525,102=>525,103=>525,104=>525,105=>525,106=>525,107=>525,108=>525,109=>525,
-110=>525,111=>525,112=>525,113=>525,114=>525,115=>525,116=>525,117=>525,118=>525,119=>525,
-120=>525,121=>525,122=>525,123=>525,124=>525,125=>525,126=>525,127=>750,128=>750,129=>750,
-130=>750,131=>750,132=>750,133=>750,134=>750,135=>750,136=>750,137=>750,138=>750,139=>750,
-140=>525,141=>750,142=>750,143=>750,144=>750,145=>525,146=>525,147=>750,148=>750,149=>750,
-150=>750,151=>750,152=>750,153=>750,154=>750,155=>750,156=>525,157=>750,158=>750,159=>750,
-160=>525,161=>525,162=>750,163=>750,164=>750,165=>750,166=>750,167=>750,168=>525,169=>750,
-170=>750,171=>750,172=>750,173=>525,174=>750,175=>525,176=>750,177=>750,178=>750,179=>750,
-180=>525,181=>750,182=>750,183=>750,184=>525,185=>750,186=>750,187=>750,188=>750,189=>750,
-190=>750,191=>525,192=>750,193=>750,194=>750,195=>750,196=>750,197=>750,198=>525,199=>750,
-200=>750,201=>750,202=>750,203=>750,204=>750,205=>750,206=>750,207=>750,208=>750,209=>750,
-210=>750,211=>750,212=>750,213=>750,214=>750,215=>750,216=>525,217=>750,218=>750,219=>750,
-220=>750,221=>750,222=>750,223=>525,224=>750,225=>750,226=>750,227=>750,228=>750,229=>750,
-230=>525,231=>750,232=>750,233=>750,234=>750,235=>750,236=>750,237=>750,238=>750,239=>750,
-240=>750,241=>750,242=>750,243=>750,244=>750,245=>750,246=>750,247=>750,248=>525,249=>750,
-250=>750,251=>750,252=>750,253=>750,254=>750,255=>750);
-$enc='cp1252';
-$diff='';
-$file='cmtt.z';
-$originalsize=28136;
-// --- EOF ---
-?> \ No newline at end of file
diff --git a/pdf/fpdf/font/cmtt10.php b/pdf/fpdf/font/cmtt10.php
deleted file mode 100644
index b1ed655..0000000
--- a/pdf/fpdf/font/cmtt10.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-$type = 'TrueType';
-$name = 'Cmtt10';
-$desc = array('Ascent'=>623,'Descent'=>-229,'CapHeight'=>623,'Flags'=>32,'FontBBox'=>'[-6 -233 625 698]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>750);
-$up = -65;
-$ut = 10;
-$cw = array(
- chr(0)=>750,chr(1)=>750,chr(2)=>750,chr(3)=>750,chr(4)=>750,chr(5)=>750,chr(6)=>750,chr(7)=>750,chr(8)=>750,chr(9)=>750,chr(10)=>750,chr(11)=>750,chr(12)=>750,chr(13)=>750,chr(14)=>750,chr(15)=>750,chr(16)=>750,chr(17)=>750,chr(18)=>750,chr(19)=>750,chr(20)=>750,chr(21)=>750,
- chr(22)=>750,chr(23)=>750,chr(24)=>750,chr(25)=>750,chr(26)=>750,chr(27)=>750,chr(28)=>750,chr(29)=>750,chr(30)=>750,chr(31)=>750,' '=>525,'!'=>525,'"'=>525,'#'=>525,'$'=>525,'%'=>525,'&'=>525,'\''=>525,'('=>525,')'=>525,'*'=>525,'+'=>525,
- ','=>525,'-'=>525,'.'=>525,'/'=>525,'0'=>525,'1'=>525,'2'=>525,'3'=>525,'4'=>525,'5'=>525,'6'=>525,'7'=>525,'8'=>525,'9'=>525,':'=>525,';'=>525,'<'=>525,'='=>525,'>'=>525,'?'=>525,'@'=>525,'A'=>525,
- 'B'=>525,'C'=>525,'D'=>525,'E'=>525,'F'=>525,'G'=>525,'H'=>525,'I'=>525,'J'=>525,'K'=>525,'L'=>525,'M'=>525,'N'=>525,'O'=>525,'P'=>525,'Q'=>525,'R'=>525,'S'=>525,'T'=>525,'U'=>525,'V'=>525,'W'=>525,
- 'X'=>525,'Y'=>525,'Z'=>525,'['=>525,'\\'=>525,']'=>525,'^'=>525,'_'=>525,'`'=>525,'a'=>525,'b'=>525,'c'=>525,'d'=>525,'e'=>525,'f'=>525,'g'=>525,'h'=>525,'i'=>525,'j'=>525,'k'=>525,'l'=>525,'m'=>525,
- 'n'=>525,'o'=>525,'p'=>525,'q'=>525,'r'=>525,'s'=>525,'t'=>525,'u'=>525,'v'=>525,'w'=>525,'x'=>525,'y'=>525,'z'=>525,'{'=>525,'|'=>525,'}'=>525,'~'=>525,chr(127)=>750,chr(128)=>750,chr(129)=>750,chr(130)=>750,chr(131)=>750,
- chr(132)=>750,chr(133)=>750,chr(134)=>750,chr(135)=>750,chr(136)=>750,chr(137)=>750,chr(138)=>750,chr(139)=>750,chr(140)=>750,chr(141)=>750,chr(142)=>750,chr(143)=>750,chr(144)=>750,chr(145)=>750,chr(146)=>750,chr(147)=>750,chr(148)=>750,chr(149)=>750,chr(150)=>750,chr(151)=>750,chr(152)=>750,chr(153)=>750,
- chr(154)=>750,chr(155)=>750,chr(156)=>750,chr(157)=>750,chr(158)=>750,chr(159)=>750,chr(160)=>525,chr(161)=>525,chr(162)=>525,chr(163)=>525,chr(164)=>525,chr(165)=>525,chr(166)=>525,chr(167)=>525,chr(168)=>525,chr(169)=>525,chr(170)=>525,chr(171)=>750,chr(172)=>750,chr(173)=>525,chr(174)=>525,chr(175)=>525,
- chr(176)=>525,chr(177)=>525,chr(178)=>525,chr(179)=>525,chr(180)=>525,chr(181)=>525,chr(182)=>525,chr(183)=>750,chr(184)=>525,chr(185)=>525,chr(186)=>525,chr(187)=>525,chr(188)=>525,chr(189)=>525,chr(190)=>525,chr(191)=>525,chr(192)=>525,chr(193)=>525,chr(194)=>525,chr(195)=>525,chr(196)=>525,chr(197)=>750,
- chr(198)=>750,chr(199)=>750,chr(200)=>750,chr(201)=>750,chr(202)=>750,chr(203)=>750,chr(204)=>750,chr(205)=>750,chr(206)=>750,chr(207)=>750,chr(208)=>750,chr(209)=>750,chr(210)=>750,chr(211)=>750,chr(212)=>750,chr(213)=>750,chr(214)=>750,chr(215)=>750,chr(216)=>750,chr(217)=>750,chr(218)=>750,chr(219)=>750,
- chr(220)=>750,chr(221)=>750,chr(222)=>750,chr(223)=>750,chr(224)=>750,chr(225)=>750,chr(226)=>750,chr(227)=>750,chr(228)=>750,chr(229)=>750,chr(230)=>750,chr(231)=>750,chr(232)=>750,chr(233)=>750,chr(234)=>750,chr(235)=>750,chr(236)=>750,chr(237)=>750,chr(238)=>750,chr(239)=>750,chr(240)=>750,chr(241)=>750,
- chr(242)=>750,chr(243)=>750,chr(244)=>750,chr(245)=>750,chr(246)=>750,chr(247)=>750,chr(248)=>750,chr(249)=>750,chr(250)=>750,chr(251)=>750,chr(252)=>750,chr(253)=>750,chr(254)=>750,chr(255)=>750);
-$enc = 'cp1252';
-$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
-$file = 'cmtt10.z';
-$originalsize = 27576;
-$subsetted = true;
-?>
diff --git a/pdf/fpdf/font/cmtt10.z b/pdf/fpdf/font/cmtt10.z
deleted file mode 100644
index e88de2d..0000000
--- a/pdf/fpdf/font/cmtt10.z
+++ /dev/null
Binary files differ