- Timestamp:
- 2013/05/02 18:11:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/helper/SC_Helper_FPDI.php
r22567 r22796 6 6 $GLOBALS[SJIS_widths] = $SJIS_widths; 7 7 8 class SC_Helper_FPDI extends PDF_Japanese 9 { 8 class SC_Helper_FPDI extends PDF_Japanese { 10 9 /** 11 10 * PDF_Japanese の明朝フォントに加えゴシックフォントを追加定義 … … 13 12 * @return void 14 13 */ 15 function AddSJISFont() 16 { 14 function AddSJISFont() { 17 15 parent::AddSJISFont(); 18 16 $cw = $GLOBALS['SJIS_widths']; … … 27 25 * PDF_Japanese#SJISMultiCell をベースにカスタマイズ。 28 26 */ 29 function SJISMultiCellForFancyTable($w, $h, $txt, $border = 0, $align = 'L', $fill = 0) 30 { 27 function SJISMultiCellForFancyTable($w, $h, $txt, $border = 0, $align = 'L', $fill = 0) { 31 28 $y = $this->y; 32 29 … … 148 145 * FIXME: 後の列の高さが大きい場合、表示が乱れる。 149 146 */ 150 function FancyTable($header, $data, $w) 151 { 147 function FancyTable($header, $data, $w) { 152 148 // Colors, line width and bold font 153 149 $this->SetFillColor(216, 216, 216); … … 190 186 } 191 187 192 function Text($x, $y, $txt) 193 { 188 function Text($x, $y, $txt) { 194 189 parent::Text($x, $y, $this->lfConvSjis($txt)); 195 190 } 196 191 197 function Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='') 198 { 192 function Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='') { 199 193 parent::Cell($w, $h, $this->lfConvSjis($txt), $border, $ln, $align, $fill, $link); 200 194 } 201 195 202 196 // 文字コードSJIS変換 -> japanese.phpで使用出来る文字コードはSJIS-winのみ 203 function lfConvSjis($conv_str) 204 { 197 function lfConvSjis($conv_str) { 205 198 return mb_convert_encoding($conv_str, 'SJIS-win', CHAR_CODE); 206 199 }
Note: See TracChangeset
for help on using the changeset viewer.
