diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-01 01:26:38 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-01 01:26:38 +0000 |
commit | e35e04de8e615d9b1bcb0e7bc72012fdd18def7e (patch) | |
tree | 6bd67b7a26abdbfd8c237453eaa8ad20315e6e3d | |
parent | 3ca48e1ecfdad8bc6358e0cdd67fb7ad4a903304 (diff) | |
download | redmine-e35e04de8e615d9b1bcb0e7bc72012fdd18def7e.tar.gz redmine-e35e04de8e615d9b1bcb0e7bc72012fdd18def7e.zip |
PDF: fix the width of the ASCII character of Japanese PDF (#7794).
r5256 in trunk has this change.
So, there is no need to commit in trunk.
Contributed by Jun NAITOH.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.1-stable@5271 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | vendor/plugins/rfpdf/lib/rfpdf/japanese.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/plugins/rfpdf/lib/rfpdf/japanese.rb b/vendor/plugins/rfpdf/lib/rfpdf/japanese.rb index f87614818..3f834295b 100644 --- a/vendor/plugins/rfpdf/lib/rfpdf/japanese.rb +++ b/vendor/plugins/rfpdf/lib/rfpdf/japanese.rb @@ -103,7 +103,7 @@ module PDF_Japanese o=s[i] if(o<128) #ASCII - l+=cw[o.chr] + l+=cw[o.chr] if cw[o.chr] i+=1 elsif(o>=161 and o<=223) #Half-width katakana @@ -179,7 +179,7 @@ module PDF_Japanese end if(o<128) #ASCII - l+=cw[c.chr] + l+=cw[c.chr] || 0 n=1 if(o==32) sep=i @@ -270,7 +270,7 @@ module PDF_Japanese end if(o<128) #ASCII - l+=cw[c.chr] + l+=cw[c.chr] || 0 n=1 if(o==32) sep=i |