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.
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
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, :params => {
:id => issue.id,