Index: lib/redmine/export/pdf.rb =================================================================== --- lib/redmine/export/pdf.rb (revision 19432) +++ lib/redmine/export/pdf.rb (working copy) @@ -48,10 +48,11 @@ end def SetFontStyle(style, size) - set_font(@font_for_content, style, size) + set_font(@font_for_content, +style, size) end def SetFont(family, style='', size=0, fontfile='') + style = +style # FreeSerif Bold Thai font has problem. style.delete!('B') if family.to_s.casecmp('freeserif') == 0 # DejaVuSans Italic Arabic and Persian font has problem. Index: test/functional/issues_controller_test.rb =================================================================== --- test/functional/issues_controller_test.rb (revision 19432) +++ test/functional/issues_controller_test.rb (working copy) @@ -1074,7 +1074,7 @@ end def test_index_pdf - ["en", "zh", "zh-TW", "ja", "ko"].each do |lang| + ["en", "zh", "zh-TW", "ja", "ko", "ar"].each do |lang| with_settings :default_language => lang do get :index assert_response :success @@ -2674,7 +2674,7 @@ def test_export_to_pdf_with_utf8_u_fffd issue = Issue.generate!(:subject => "�") - ["en", "zh", "zh-TW", "ja", "ko"].each do |lang| + ["en", "zh", "zh-TW", "ja", "ko", "ar"].each do |lang| with_settings :default_language => lang do get( :show,