diff options
-rw-r--r-- | lib/redmine/export/pdf.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb index 6f386b5a7..9dd405a2a 100644 --- a/lib/redmine/export/pdf.rb +++ b/lib/redmine/export/pdf.rb @@ -52,9 +52,9 @@ module Redmine def SetFont(family, style='', size=0, fontfile='') # FreeSerif Bold Thai font has problem. - style.delete!('B') if family.to_s.casecmp('freeserif') != 0 + style.delete!('B') if l(:general_pdf_fontname) == 'freeserif' # DejaVuSans Italic Arabic and Persian font has problem. - style.delete!('I') if family.to_s.casecmp('DejaVuSans') != 0 && current_language.to_s.casecmp("vi") != 0 + style.delete!('I') if l(:general_pdf_fontname) == 'DejaVuSans' && current_language.to_s.casecmp("vi") != 0 super(family, style, size, fontfile) end alias_method :set_font, :SetFont |