From abea7c2d30abbe579227f277e87b104d0e370dc4 2015-12-06 12:21:36 From: Toshi MARUYAMA Date: 2015-12-06 12:21:36 Subject: [PATCH] pdf: remove italic from DejaVuSansMono (#19017) DejaVuSansMono Italic Arabic font has problem. Contributed by Jun NAITOH. git-svn-id: http://svn.redmine.org/redmine/trunk@14960 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb index a13a563..0497198 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