「TCPDF」:修訂間差異
跳至導覽
跳至搜尋
無編輯摘要 |
無編輯摘要 |
||
| (未顯示同一使用者於中間所作的 4 次修訂) | |||
| 第2行: | 第2行: | ||
*$pdf->SetFont('droidsansfallback', ", 12);可秀出繁簡中日文,但堃無法顯示 | *$pdf->SetFont('droidsansfallback', ", 12);可秀出繁簡中日文,但堃無法顯示 | ||
*$pdf->SetFont('cid0jp', ", 40);可秀出繁簡中日文,但產和产無法顯示 | *$pdf->SetFont('cid0jp', ", 40);可秀出繁簡中日文,但產和产無法顯示 | ||
*$resolution= array(100, 100); | //$pdf->SetFont('msungstdlight', '', 18, '', true); // 繁中, 但是效果不好,字會偏移 | ||
//$pdf->SetFont('dejavusans', '', 14, '', true); // 預設 utf8 | |||
*$resolution= array(100, 100); $pdf->AddPage('P', $resolution); 紙張大小 | |||
==自訂字型== | ==自訂字型== | ||
*$font = new TCPDF_FONTS(); | *$font = new TCPDF_FONTS(); | ||
*$fontX=$font->addTTFfont('../tcpdf/fonts/big5/kaiu.ttf'); | *$fontX=$font->addTTFfont('../tcpdf/fonts/big5/kaiu.ttf'); | ||
*$pdf->SetFont($fontX, | *$pdf->SetFont($fontX, ", 12); | ||
==A5橫印== | ==A5橫印== | ||
*$pdf->SetMargins(0, 8, 7,true); | *$pdf->SetMargins(0, 8, 7,true); | ||
*$pdf->AddPage('L'); | *$pdf->AddPage('L'); | ||
於 2015年8月12日 (三) 21:06 的最新修訂
- $pdf->SetFont('stsongstdlight', ", 40); 可秀出繁簡中日文
- $pdf->SetFont('droidsansfallback', ", 12);可秀出繁簡中日文,但堃無法顯示
- $pdf->SetFont('cid0jp', ", 40);可秀出繁簡中日文,但產和产無法顯示
//$pdf->SetFont('msungstdlight', , 18, , true); // 繁中, 但是效果不好,字會偏移 //$pdf->SetFont('dejavusans', , 14, , true); // 預設 utf8
- $resolution= array(100, 100); $pdf->AddPage('P', $resolution); 紙張大小
自訂字型
- $font = new TCPDF_FONTS();
- $fontX=$font->addTTFfont('../tcpdf/fonts/big5/kaiu.ttf');
- $pdf->SetFont($fontX, ", 12);
A5橫印
- $pdf->SetMargins(0, 8, 7,true);
- $pdf->AddPage('L');