@@ 32-40 (lines=9) @@ | ||
29 | ||
30 | class PDF_Chinese extends FPDF |
|
31 | { |
|
32 | function AddCIDFont($family,$style,$name,$cw,$CMap,$registry) |
|
33 | { |
|
34 | $fontkey=strtolower($family).strtoupper($style); |
|
35 | if(isset($this->fonts[$fontkey])) |
|
36 | $this->Error("Font already added: $family $style"); |
|
37 | $i=count($this->fonts)+1; |
|
38 | $name=str_replace(' ','',$name); |
|
39 | $this->fonts[$fontkey]=array('i'=>$i,'type'=>'Type0','name'=>$name,'up'=>-130,'ut'=>40,'cw'=>$cw,'CMap'=>$CMap,'registry'=>$registry); |
|
40 | } |
|
41 | ||
42 | function AddCIDFonts($family,$name,$cw,$CMap,$registry) |
|
43 | { |
@@ 21-29 (lines=9) @@ | ||
18 | ||
19 | class PDF_Korean extends FPDF |
|
20 | { |
|
21 | function AddCIDFont($family,$style,$name,$cw,$CMap,$registry) |
|
22 | { |
|
23 | $fontkey=strtolower($family).strtoupper($style); |
|
24 | if(isset($this->fonts[$fontkey])) |
|
25 | $this->Error("Font already added: $family $style"); |
|
26 | $i=count($this->fonts)+1; |
|
27 | $name=str_replace(' ','',$name); |
|
28 | $this->fonts[$fontkey]=array('i'=>$i,'type'=>'Type0','name'=>$name,'up'=>-130,'ut'=>40,'cw'=>$cw,'CMap'=>$CMap,'registry'=>$registry); |
|
29 | } |
|
30 | ||
31 | function AddCIDFonts($family,$name,$cw,$CMap,$registry) |
|
32 | { |