]> source.dussan.org Git - redmine.git/commitdiff
Merged r14960 from trunk to 3.2-stable (#19017)
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 6 Dec 2015 12:24:28 +0000 (12:24 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 6 Dec 2015 12:24:28 +0000 (12:24 +0000)
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

lib/redmine/export/pdf.rb

index a13a563858202c1dc4e51ddd52a3a72e34276eb0..04971988269d19257d3c481493a853acff421491 100644 (file)
@@ -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