@@ 88-94 (lines=7) @@ | ||
85 | $this->AddCIDFonts($family,$name,$cw,$CMap,$registry); |
|
86 | } |
|
87 | ||
88 | function GetStringWidth($s) |
|
89 | { |
|
90 | if($this->CurrentFont['type']=='Type0') |
|
91 | return $this->GetMBStringWidth($s); |
|
92 | else |
|
93 | return parent::GetStringWidth($s); |
|
94 | } |
|
95 | ||
96 | function GetMBStringWidth($s) |
|
97 | { |
@@ 59-65 (lines=7) @@ | ||
56 | $this->AddCIDFonts($family,$name,$cw,$CMap,$registry); |
|
57 | } |
|
58 | ||
59 | function GetStringWidth($s) |
|
60 | { |
|
61 | if($this->CurrentFont['type']=='Type0') |
|
62 | return $this->GetSJISStringWidth($s); |
|
63 | else |
|
64 | return parent::GetStringWidth($s); |
|
65 | } |
|
66 | ||
67 | function GetSJISStringWidth($s) |
|
68 | { |
@@ 58-64 (lines=7) @@ | ||
55 | $this->AddCIDFonts($family,$name,$cw,$CMap,$registry); |
|
56 | } |
|
57 | ||
58 | function GetStringWidth($s) |
|
59 | { |
|
60 | if($this->CurrentFont['type']=='Type0') |
|
61 | return $this->GetMBStringWidth($s); |
|
62 | else |
|
63 | return parent::GetStringWidth($s); |
|
64 | } |
|
65 | ||
66 | function GetMBStringWidth($s) |
|
67 | { |