mirror of
https://github.com/redmine/redmine.git
synced 2026-01-30 11:19:59 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user