Changeset 21024 for branches/version-2_11-dev/data/class/SC_Fpdf.php
- Timestamp:
- 2011/07/07 19:54:37 (15 years ago)
- File:
-
- 1 edited
-
branches/version-2_11-dev/data/class/SC_Fpdf.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/SC_Fpdf.php
r20994 r21024 58 58 // SJISフォント 59 59 $this->pdf->AddSJISFont(); 60 $this->pdf->SetFont('SJIS'); 60 61 61 62 //ページ総数取得 … … 151 152 152 153 // お届け先情報 153 $this->pdf->SetFont ('SJIS', '',10);154 $this->pdf->SetFontSize(10); 154 155 $this->lfText(25, 125, SC_Utils_Ex::sfDispDBDate($this->arrDisp['create_date']), 10); //ご注文日 155 156 $this->lfText(25, 135, $this->arrDisp['order_id'], 10); //注文番号 156 157 157 $this->pdf->SetFont(' SJIS', 'B', 15);158 $this->pdf->SetFont('', 'B', 15); 158 159 $this->pdf->Cell(0, 10, $this->lfConvSjis($this->tpl_title), 0, 2, 'C', 0, ''); //文書タイトル(納品書・請求書) 159 160 $this->pdf->Cell(0, 66, '', 0, 2, 'R', 0, ''); … … 162 163 $this->pdf->Cell(0, 45, '', 0, 2, '', 0, ''); 163 164 164 $this->pdf->SetFont ('SJIS', '',8);165 $this->pdf->SetFontSize(8); 165 166 166 167 $monetary_unit = $this->lfConvSjis("円"); … … 256 257 function setEtcData() { 257 258 $this->pdf->Cell(0, 10, '', 0, 1, 'C', 0, ''); 258 $this->pdf->SetFont ('SJIS', '',9);259 $this->pdf->SetFontSize(9); 259 260 $this->pdf->MultiCell(0, 6, $this->lfConvSjis("< 備 考 >"), 'T', 2, 'L', 0, ''); //備考 260 261 $this->pdf->Ln(); 261 $this->pdf->SetFont ('SJIS', '',8);262 $this->pdf->SetFontSize(8); 262 263 $this->pdf->MultiCell(0, 4, $this->lfConvSjis($this->arrData['etc1']."\n".$this->arrData['etc2']."\n".$this->arrData['etc3']), '', 2, 'L', 0, ''); //備考 263 264 } … … 282 283 283 284 // PDF_Japanese::Text へのパーサー 284 function lfText($x, $y, $text, $size, $style = '') { 285 $text = mb_convert_encoding($text, "SJIS-win", CHAR_CODE); 286 287 $this->pdf->SetFont('SJIS', $style, $size); 288 $this->pdf->Text($x, $y, $text); 285 function lfText($x, $y, $text, $size = 0, $style = '') { 286 // 退避 287 $bak_font_style = $this->pdf->FontStyle; 288 $bak_font_size = $this->pdf->FontSizePt; 289 290 $this->pdf->SetFont('', $style, $size); 291 $this->pdf->Text($x, $y, $this->lfConvSjis($text)); 292 293 // 復元 294 $this->pdf->SetFont('', $bak_font_style, $bak_font_size); 289 295 } 290 296
Note: See TracChangeset
for help on using the changeset viewer.
