summaryrefslogtreecommitdiffstats
path: root/lib/redmine
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2015-12-06 12:24:28 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2015-12-06 12:24:28 +0000
commit3eb2ad661724d4e27e36e29b75bfb7f153b473fd (patch)
tree6c8dfb28dd6126f89831e872beadffa460be3425 /lib/redmine
parent60dea89b2af19f36c80f72c3d33c9f1e8bf471f5 (diff)
downloadredmine-3eb2ad661724d4e27e36e29b75bfb7f153b473fd.tar.gz
redmine-3eb2ad661724d4e27e36e29b75bfb7f153b473fd.zip
Merged r14960 from trunk to 3.2-stable (#19017)
pdf: remove italic from DejaVuSansMono. DejaVuSansMono Italic Arabic font has problem. Contributed by Jun NAITOH. git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@14962 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r--lib/redmine/export/pdf.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb
index a13a56385..049719882 100644
--- a/lib/redmine/export/pdf.rb
+++ b/lib/redmine/export/pdf.rb
@@ -55,6 +55,8 @@ module Redmine
style.delete!('B') if family.to_s.casecmp('freeserif') == 0
# DejaVuSans Italic Arabic and Persian font has problem.
style.delete!('I') if family.to_s.casecmp('dejavusans') == 0 && current_language.to_s.casecmp("vi") != 0
+ # DejaVuSansMono Italic Arabic font has problem
+ style.delete!('I') if family.to_s.casecmp('Dejavusansmono') == 0
super(family, style, size, fontfile)
end
alias_method :set_font, :SetFont