Project

General

Profile

Defect #32832 » fix_pdfexport2.patch

Pavel Rosický, 2020-01-18 08:45

View differences:

lib/redmine/export/pdf.rb (working copy)
52 52
        end
53 53

  
54 54
        def SetFont(family, style='', size=0, fontfile='')
55
          style = +style
55 56
          # FreeSerif Bold Thai font has problem.
56 57
          style.delete!('B') if family.to_s.casecmp('freeserif') == 0
57 58
          # DejaVuSans Italic Arabic and Persian font has problem.
test/functional/issues_controller_test.rb (working copy)
1074 1074
  end
1075 1075

  
1076 1076
  def test_index_pdf
1077
    ["en", "zh", "zh-TW", "ja", "ko"].each do |lang|
1077
    ["en", "zh", "zh-TW", "ja", "ko", "ar"].each do |lang|
1078 1078
      with_settings :default_language => lang do
1079 1079
        get :index
1080 1080
        assert_response :success
......
2674 2674

  
2675 2675
  def test_export_to_pdf_with_utf8_u_fffd
2676 2676
    issue = Issue.generate!(:subject => "�")
2677
    ["en", "zh", "zh-TW", "ja", "ko"].each do |lang|
2677
    ["en", "zh", "zh-TW", "ja", "ko", "ar"].each do |lang|
2678 2678
      with_settings :default_language => lang do
2679 2679
        get(
2680 2680
          :show,
(2-2/2)