summaryrefslogtreecommitdiffstats
path: root/lib/redmine/export
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2015-12-06 12:21:25 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2015-12-06 12:21:25 +0000
commit4996e56ff341ba17e813e078a63f8f5a520c4aaa (patch)
treec1f7cfb2e6590599e6f0e6c461f5a8a23626cb6c /lib/redmine/export
parent2863f2b1d5dcd7d13431c1ab158fbfa5e4a610b9 (diff)
downloadredmine-4996e56ff341ba17e813e078a63f8f5a520c4aaa.tar.gz
redmine-4996e56ff341ba17e813e078a63f8f5a520c4aaa.zip
pdf: use "family" parameter instead of l(:general_pdf_fontname) at SetFont method (#19017)
Contributed by Jun NAITOH. git-svn-id: http://svn.redmine.org/redmine/trunk@14959 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/export')
-rw-r--r--lib/redmine/export/pdf.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb
index 9dd405a2a..a13a56385 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 l(:general_pdf_fontname) == 'freeserif'
+ style.delete!('B') if family.to_s.casecmp('freeserif') == 0
# DejaVuSans Italic Arabic and Persian font has problem.
- style.delete!('I') if l(:general_pdf_fontname) == 'DejaVuSans' && current_language.to_s.casecmp("vi") != 0
+ style.delete!('I') if family.to_s.casecmp('dejavusans') == 0 && current_language.to_s.casecmp("vi") != 0
super(family, style, size, fontfile)
end
alias_method :set_font, :SetFont