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