Ignore:
Timestamp:
2010/03/11 10:35:11 (14 years ago)
Author:
kajiwara
Message:

正式版にナイトリービルド版をマージしてみるテスト

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tmp/version-2_5-test/data/pdf/japanese.php

    r18007 r18609  
    11<?php 
    2 require('fpdf.php'); 
    32require('fpdi.php'); 
    43 
     
    1413    'x'=>503,'y'=>529,'z'=>453,'{'=>326,'|'=>380,'}'=>326,'~'=>387); 
    1514 
    16 //class PDF_Japanese extends FPDF 
    17 class PDF_Japanese extends FPDI //変更 
     15class PDF_Japanese extends FPDI 
    1816{ 
    1917function AddCIDFont($family,$style,$name,$cw,$CMap,$registry) 
     
    3836    //Add SJIS font with proportional Latin 
    3937    $name='KozMinPro-Regular-Acro'; 
    40     //$name='Gothic'; // 変更 
     38    //$name='Gothic'; // •ÏX 
    4139    $cw=$GLOBALS['SJIS_widths']; 
    4240    $CMap='90msp-RKSJ-H'; 
     
    139137    $l=0; 
    140138    $nl=1; 
    141     $this->rise_h = 0; //高さ計算用 
     139    $this->rise_h = 0; //‚‚³ŒvŽZ—p 
    142140 
    143141    while($i<$nb) 
     
    155153            $l=0; 
    156154            $nl++; 
    157             $this->rise_h += $h; //高さ計算用 
     155            $this->rise_h += $h; //‚‚³ŒvŽZ—p 
    158156            if($border and $nl==2) 
    159157                $b=$b2; 
     
    196194                $i=($s[$sep]==' ') ? $sep+1 : $sep; 
    197195            } 
    198             $this->rise_h += $h; //高さ計算用 
     196            $this->rise_h += $h; //‚‚³ŒvŽZ—p 
    199197            $sep=-1; 
    200198            $j=$i; 
     
    215213        $b.='B'; 
    216214    $this->Cell($w,$h,substr($s,$j,$i-$j),$b,$ln,$align,$fill); 
    217     $this->rise_h += $h; //増加分の高さを計算 
    218     //改行なし設定かつ、高さが規定の高さ以上であればY軸を設定しなおす。 
     215    $this->rise_h += $h; //‘‰Á•ª‚̍‚‚³‚ðŒvŽZ 
     216    //‰üs‚È‚µÝ’è‚©‚A‚‚³‚ª‹K’è‚̍‚‚³ˆÈã‚Å‚ ‚ê‚ÎYŽ²‚ðÝ’肵‚È‚¨‚·B 
    219217    if($ln == 0 and $h < $this->rise_h) { 
    220218      $this->y = $this->y - $this->rise_h + $h; 
     
    528526function Footer() 
    529527{ 
    530     //下端から1.5 cm に移動 
     528    //‰º’[‚©‚ç1.5 cm ‚Ɉړ® 
    531529    $this->SetY(-15); 
    532     //フォントを設定。 Arial italic 8 
     530    //ƒtƒHƒ“ƒg‚ðÝ’èB Arial italic 8 
    533531    $this->SetFont('Arial','I',8); 
    534     //現在のページ番号と総ページ数を出力 
     532    //Œ»Ý‚̃y[ƒW”ԍ†‚Æ‘ƒy[ƒW”‚ðo—Í 
    535533    #$this->Cell(0,10,''.$this->PageNo().' / {nb}',0,0,'C'); 
    536534} 
Note: See TracChangeset for help on using the changeset viewer.