Defect #32832 » fix_pdfexport.patch
lib/redmine/export/pdf.rb (working copy) | ||
---|---|---|
48 | 48 |
end |
49 | 49 | |
50 | 50 |
def SetFontStyle(style, size) |
51 |
set_font(@font_for_content, style, size) |
|
51 |
set_font(@font_for_content, +style, size)
|
|
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, |