發表文章

目前顯示的是 10月, 2013的文章

FPDF Big5 Font

fpdf的函式: function AddUniGBhwFont ($family='uGB', $name='AdobeSongStd-Light-Acro') { ....... } PS: 請記得採用 AdobeSongStd-Light-Acro, 這樣英文字的間距比較沒問題! 應用的程式: $this->AddUniGBhwFont('uGB'); $this->AddFont('uGB');   from : http://twpug.net/modules/newbb/viewtopic.php?topic_id=3026 ============= http://www.fpdf.org/phorum/read.php?f=1&i=5142&t=5142 ======= To print half-width English letters, add this method to the PDF_Chinese class: function AddBig5hwFont($family='Big5-hw') { for($i=32;$i<=126;$i++) $cw[chr($i)]=500; $name='MSungStd-Light-Acro'; $CMap='ETen-B5-H'; $registry=array('ordering'=>'CNS1','supplement'=>0); $this->AddCIDFont($family,'',$name,$cw,$CMap,$registry); $this->AddCIDFont($family,'B',$name.',Bold',$cw,$CMap,$registry); $this->AddCIDFont($family,'I',$name.',Italic',$cw,$CMap,$registry); $this->AddCIDFont(

TCPDF Links to chinese font solutions.

http://www.coolsun.idv.tw/modules/xhnewbb/viewtopic.php?topic_id=1236 http://www.coolsun.idv.tw/modules/xhnewbb/viewtopic.php?topic_id=1236 http://www.webpage.idv.tw/maillist/maillist4/new/05/teach.htm

Mobile Website Development

<?php $android = strpos($_SERVER['HTTP_USER_AGENT'],"Android"); $bberry = strpos($_SERVER['HTTP_USER_AGENT'],"BlackBerry"); $iphone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone"); $ipod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod"); $webos = strpos($_SERVER['HTTP_USER_AGENT'],"webOS"); if ($android || $bberry || $iphone || $ipod || $webos== true) { header('Location: http://www.yoursite.com/mobile' ); } ?>

FPDF multicell line height problem.