mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-19 18:12:01 +00:00
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
This commit is contained in:
parent
3ca48e1ecf
commit
e35e04de8e
6
vendor/plugins/rfpdf/lib/rfpdf/japanese.rb
vendored
6
vendor/plugins/rfpdf/lib/rfpdf/japanese.rb
vendored
@ -103,7 +103,7 @@ module PDF_Japanese
|
|||||||
o=s[i]
|
o=s[i]
|
||||||
if(o<128)
|
if(o<128)
|
||||||
#ASCII
|
#ASCII
|
||||||
l+=cw[o.chr]
|
l+=cw[o.chr] if cw[o.chr]
|
||||||
i+=1
|
i+=1
|
||||||
elsif(o>=161 and o<=223)
|
elsif(o>=161 and o<=223)
|
||||||
#Half-width katakana
|
#Half-width katakana
|
||||||
@ -179,7 +179,7 @@ module PDF_Japanese
|
|||||||
end
|
end
|
||||||
if(o<128)
|
if(o<128)
|
||||||
#ASCII
|
#ASCII
|
||||||
l+=cw[c.chr]
|
l+=cw[c.chr] || 0
|
||||||
n=1
|
n=1
|
||||||
if(o==32)
|
if(o==32)
|
||||||
sep=i
|
sep=i
|
||||||
@ -270,7 +270,7 @@ module PDF_Japanese
|
|||||||
end
|
end
|
||||||
if(o<128)
|
if(o<128)
|
||||||
#ASCII
|
#ASCII
|
||||||
l+=cw[c.chr]
|
l+=cw[c.chr] || 0
|
||||||
n=1
|
n=1
|
||||||
if(o==32)
|
if(o==32)
|
||||||
sep=i
|
sep=i
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user