Changeset 21316 for branches/version-2_11-dev/data/class/SC_Fpdf.php
- Timestamp:
- 2011/11/05 22:37:43 (15 years ago)
- File:
-
- 1 edited
-
branches/version-2_11-dev/data/class/SC_Fpdf.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/SC_Fpdf.php
r21024 r21316 55 55 56 56 $this->pdf = new PDF_Japanese(); 57 $this->lfAddGothicFont(); 57 58 58 59 // SJISフォント … … 152 153 153 154 // お届け先情報 154 $this->pdf->SetFont Size(10);155 $this->pdf->SetFont('SJIS', '', 10); 155 156 $this->lfText(25, 125, SC_Utils_Ex::sfDispDBDate($this->arrDisp['create_date']), 10); //ご注文日 156 157 $this->lfText(25, 135, $this->arrDisp['order_id'], 10); //注文番号 157 158 158 $this->pdf->SetFont(' ', 'B', 15);159 $this->pdf->SetFont('Gothic', 'B', 15); 159 160 $this->pdf->Cell(0, 10, $this->lfConvSjis($this->tpl_title), 0, 2, 'C', 0, ''); //文書タイトル(納品書・請求書) 160 161 $this->pdf->Cell(0, 66, '', 0, 2, 'R', 0, ''); 161 162 $this->pdf->Cell(5, 0, '', 0, 0, 'R', 0, ''); 163 $this->pdf->SetFont('SJIS', 'B', 15); 162 164 $this->pdf->Cell(67, 8, $this->lfConvSjis(number_format($this->arrDisp['payment_total'])." 円"), 0, 2, 'R', 0, ''); 163 165 $this->pdf->Cell(0, 45, '', 0, 2, '', 0, ''); 164 166 165 $this->pdf->SetFont Size(8);167 $this->pdf->SetFont('SJIS', '', 8); 166 168 167 169 $monetary_unit = $this->lfConvSjis("円"); … … 257 259 function setEtcData() { 258 260 $this->pdf->Cell(0, 10, '', 0, 1, 'C', 0, ''); 259 $this->pdf->SetFont Size(9);261 $this->pdf->SetFont('Gothic', 'B', 9); 260 262 $this->pdf->MultiCell(0, 6, $this->lfConvSjis("< 備 考 >"), 'T', 2, 'L', 0, ''); //備考 261 263 $this->pdf->Ln(); 262 $this->pdf->SetFont Size(8);264 $this->pdf->SetFont('SJIS', '', 8); 263 265 $this->pdf->MultiCell(0, 4, $this->lfConvSjis($this->arrData['etc1']."\n".$this->arrData['etc2']."\n".$this->arrData['etc3']), '', 2, 'L', 0, ''); //備考 264 266 } … … 332 334 } 333 335 336 /** 337 * ゴシックフォントを定義 338 * 339 * @return void 340 */ 341 function lfAddGothicFont() { 342 $cw = $GLOBALS['SJIS_widths']; 343 $c_map = '90msp-RKSJ-H'; 344 $registry = array('ordering'=>'Japan1','supplement'=>2); 345 $this->pdf->AddCIDFonts('Gothic', 'KozGoPro-Medium-Acro,MS-PGothic,Osaka', $cw, $c_map, $registry); 346 } 334 347 } 335 348 ?>
Note: See TracChangeset
for help on using the changeset viewer.
