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