diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2015-02-08 04:04:35 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2015-02-08 04:04:35 +0000 |
commit | e622ce6691775580d8e9d412c70a05b2d411dafd (patch) | |
tree | 7ba736985aa66b3fc50d98c000ea3e17384c22d9 /lib/redmine/export | |
parent | 15e5d01b30104286ce29143b45191c793436ac68 (diff) | |
download | redmine-e622ce6691775580d8e9d412c70a05b2d411dafd.tar.gz redmine-e622ce6691775580d8e9d412c70a05b2d411dafd.zip |
pdf: remove styles by fontname instated of Arabic/Persian/Thai locale (#10681, #18586)
git-svn-id: http://svn.redmine.org/redmine/trunk@13977 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/export')
-rw-r--r-- | lib/redmine/export/pdf.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb index dd1616f9c..dd7c91d4b 100644 --- a/lib/redmine/export/pdf.rb +++ b/lib/redmine/export/pdf.rb @@ -49,8 +49,10 @@ module Redmine end def SetFont(family, style='', size=0, fontfile='') - style.delete!('B') if current_language.to_s.downcase == 'th' # FreeSerif Bold Thai font has problem. - style.delete!('I') if current_language.to_s.downcase =~ /^(fa|ar)$/ # DejaVuSans Italic Arabic and Persian font has problem. + # FreeSerif Bold Thai font has problem. + style.delete!('B') if l(:general_pdf_fontname) == 'freeserif' + # DejaVuSans Italic Arabic and Persian font has problem. + style.delete!('I') if l(:general_pdf_fontname) == 'DejaVuSans' super(family, style, size, fontfile) end alias_method :set_font, :SetFont |