Defect #10681 » pdf.rb_r13778.diff
| lib/redmine/export/pdf.rb (working copy) | ||
|---|---|---|
|
super(orientation, 'mm', 'A4')
|
||
|
set_print_header(false)
|
||
|
set_rtl(l(:direction) == 'rtl')
|
||
|
set_temp_rtl(l(:direction) == 'rtl' ? 'R' : 'L')
|
||
|
@font_for_content = l(:general_pdf_fontname)
|
||
|
@font_for_footer = l(:general_pdf_fontname)
|
||
| ... | ... | |
|
def SetFontStyle(style, size)
|
||
|
style.delete!('B') if current_language.to_s.downcase == 'th' # FreeSerif Bold Thai font has problem.
|
||
|
style.delete!('I') if current_language.to_s.downcase =~ /^(fa|ar)$/ # DejaVuSans Italic Arabic and Persian font has problem.
|
||
|
set_font(@font_for_content, style, size)
|
||
|
end
|
||