mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
git-svn-id: http://svn.redmine.org/redmine/trunk@13977 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
15e5d01b30
commit
e622ce6691
@ -49,8 +49,10 @@ module Redmine
|
|||||||
end
|
end
|
||||||
|
|
||||||
def SetFont(family, style='', size=0, fontfile='')
|
def SetFont(family, style='', size=0, fontfile='')
|
||||||
style.delete!('B') if current_language.to_s.downcase == 'th' # FreeSerif Bold Thai font has problem.
|
# FreeSerif Bold Thai font has problem.
|
||||||
style.delete!('I') if current_language.to_s.downcase =~ /^(fa|ar)$/ # DejaVuSans Italic Arabic and Persian font has problem.
|
style.delete!('B') if l(:general_pdf_fontname) == 'freeserif'
|
||||||
|
# DejaVuSans Italic Arabic and Persian font has problem.
|
||||||
|
style.delete!('I') if l(:general_pdf_fontname) == 'DejaVuSans'
|
||||||
super(family, style, size, fontfile)
|
super(family, style, size, fontfile)
|
||||||
end
|
end
|
||||||
alias_method :set_font, :SetFont
|
alias_method :set_font, :SetFont
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user