##// END OF EJS Templates
PDF: use DejaVuSans fonts in Vietnamese (#8566)....
Toshi MARUYAMA -
r5915:a6f1ae1f964e
parent child
Show More
@@ -40,6 +40,11 module Redmine
40 @ic = Iconv.new(pdf_encoding, 'UTF-8')
40 @ic = Iconv.new(pdf_encoding, 'UTF-8')
41 end
41 end
42 super('P', 'mm', 'A4', (pdf_encoding == 'UTF-8'), pdf_encoding)
42 super('P', 'mm', 'A4', (pdf_encoding == 'UTF-8'), pdf_encoding)
43 case current_language.to_s.downcase
44 when 'vi'
45 @font_for_content = 'DejaVuSans'
46 @font_for_footer = 'DejaVuSans'
47 else
43 case pdf_encoding
48 case pdf_encoding
44 when 'UTF-8'
49 when 'UTF-8'
45 @font_for_content = 'FreeSans'
50 @font_for_content = 'FreeSans'
@@ -68,6 +73,7 module Redmine
68 @font_for_content = 'Arial'
73 @font_for_content = 'Arial'
69 @font_for_footer = 'Helvetica'
74 @font_for_footer = 'Helvetica'
70 end
75 end
76 end
71 SetCreator(Redmine::Info.app_name)
77 SetCreator(Redmine::Info.app_name)
72 SetFont(@font_for_content)
78 SetFont(@font_for_content)
73 end
79 end
General Comments 0
You need to be logged in to leave comments. Login now