@@ -49,8 +49,10 module Redmine | |||
|
49 | 49 | end |
|
50 | 50 | |
|
51 | 51 | def SetFont(family, style='', size=0, fontfile='') |
|
52 |
|
|
|
53 | style.delete!('I') if current_language.to_s.downcase =~ /^(fa|ar)$/ # DejaVuSans Italic Arabic and Persian font has problem. | |
|
52 | # FreeSerif Bold Thai font has problem. | |
|
53 | style.delete!('B') if l(:general_pdf_fontname) == 'freeserif' | |
|
54 | # DejaVuSans Italic Arabic and Persian font has problem. | |
|
55 | style.delete!('I') if l(:general_pdf_fontname) == 'DejaVuSans' | |
|
54 | 56 | super(family, style, size, fontfile) |
|
55 | 57 | end |
|
56 | 58 | alias_method :set_font, :SetFont |
General Comments 0
You need to be logged in to leave comments.
Login now