From 12ede7d07f5e6d427bc17b945f92854c1403a787 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 4 Dec 2015 06:50:08 +0000 Subject: revert r14907 (#19017) r14907 breaks Arabic italic pdf rendering. git-svn-id: http://svn.redmine.org/redmine/trunk@14911 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/export/pdf.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/redmine/export') diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb index 0d8e2fc38..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 == 'freeserif' + style.delete!('B') if l(:general_pdf_fontname) == 'freeserif' # DejaVuSans Italic Arabic and Persian font has problem. - style.delete!('I') if family == 'DejaVuSans' && 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 -- cgit v1.2.3