Defect #61 » rfpdf-korean.diff
| vendor/plugins/rfpdf/lib/rfpdf/korean.rb (working copy) | ||
|---|---|---|
|
b='LRT'
|
||
|
b2='LR'
|
||
|
else
|
||
|
b2=''
|
||
|
if(border.index('L').nil?)
|
||
|
b2+='L'
|
||
|
end
|
||
|
if(border.index('R').nil?)
|
||
|
b2+='R'
|
||
|
end
|
||
|
b=border.index('T').nil? ? b2+'T' : b2
|
||
|
end
|
||
|
if border.respond_to?:index
|
||
|
b2=''
|
||
|
if(border.index('L').nil?)
|
||
|
b2+='L'
|
||
|
end
|
||
|
if(border.index('R').nil?)
|
||
|
b2+='R'
|
||
|
end
|
||
|
b=border.index('T').nil? ? b2+'T' : b2
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
sep=-1
|
||
|
i=0
|
||
| ... | ... | |
|
end
|
||
|
end
|
||
|
#Last chunk
|
||
|
if(border and not border.index('B').nil?)
|
||
|
if(border and border.respond_to?(:index) and not border.index('B').nil?)
|
||
|
b+='B'
|
||
|
end
|
||
|
Cell(w,h,s[j,i-j],b,2,align,fill)
|
||
| lib/redmine/export/pdf.rb (working copy) | ||
|---|---|---|
|
super()
|
||
|
set_language_if_valid lang
|
||
|
case current_language.to_s.downcase
|
||
|
when 'ko'
|
||
|
extend(PDF_Korean)
|
||
|
AddUHCFont()
|
||
|
@font_for_content = 'UHC'
|
||
|
@font_for_footer = 'UHC'
|
||
|
when 'ja'
|
||
|
extend(PDF_Japanese)
|
||
|
AddSJISFont()
|
||