Defect #7794 » ja-pdf_fix.patch
vendor/plugins/rfpdf/lib/rfpdf/japanese.rb 2011-03-08 04:44:39.000000000 +0900 → vendor/plugins/rfpdf/lib/rfpdf/japanese.rb 2011-03-31 05:24:03.000000000 +0900 | ||
---|---|---|
103 | 103 |
o=s[i] |
104 | 104 |
if(o<128) |
105 | 105 |
#ASCII |
106 |
l+=cw[o.chr] |
|
106 |
l+=cw[o.chr] if cw[o.chr]
|
|
107 | 107 |
i+=1 |
108 | 108 |
elsif(o>=161 and o<=223) |
109 | 109 |
#Half-width katakana |
... | ... | |
179 | 179 |
end |
180 | 180 |
if(o<128) |
181 | 181 |
#ASCII |
182 |
l+=cw[c.chr] |
|
182 |
l+=cw[c.chr] || 0
|
|
183 | 183 |
n=1 |
184 | 184 |
if(o==32) |
185 | 185 |
sep=i |
... | ... | |
270 | 270 |
end |
271 | 271 |
if(o<128) |
272 | 272 |
#ASCII |
273 |
l+=cw[c.chr] |
|
273 |
l+=cw[c.chr] || 0
|
|
274 | 274 |
n=1 |
275 | 275 |
if(o==32) |
276 | 276 |
sep=i |
- « Previous
- 1
- …
- 3
- 4
- 5
- Next »