PDF: use DejaVuSans fonts in Vietnamese (#8566).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6035 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
182c4a9997
commit
a6f1ae1f96
|
@ -40,6 +40,11 @@ module Redmine
|
|||
@ic = Iconv.new(pdf_encoding, 'UTF-8')
|
||||
end
|
||||
super('P', 'mm', 'A4', (pdf_encoding == 'UTF-8'), pdf_encoding)
|
||||
case current_language.to_s.downcase
|
||||
when 'vi'
|
||||
@font_for_content = 'DejaVuSans'
|
||||
@font_for_footer = 'DejaVuSans'
|
||||
else
|
||||
case pdf_encoding
|
||||
when 'UTF-8'
|
||||
@font_for_content = 'FreeSans'
|
||||
|
@ -68,6 +73,7 @@ module Redmine
|
|||
@font_for_content = 'Arial'
|
||||
@font_for_footer = 'Helvetica'
|
||||
end
|
||||
end
|
||||
SetCreator(Redmine::Info.app_name)
|
||||
SetFont(@font_for_content)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue