summaryrefslogtreecommitdiffstats
path: root/lib/redmine/export/pdf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/export/pdf.rb')
-rw-r--r--lib/redmine/export/pdf.rb25
1 files changed, 2 insertions, 23 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb
index 824508854..b555534a8 100644
--- a/lib/redmine/export/pdf.rb
+++ b/lib/redmine/export/pdf.rb
@@ -39,29 +39,8 @@ module Redmine
set_rtl(l(:direction) == 'rtl')
set_temp_rtl(l(:direction) == 'rtl' ? 'R' : 'L')
- case current_language.to_s.downcase
- when 'vi'
- @font_for_content = 'DejaVuSans'
- @font_for_footer = 'DejaVuSans'
- when 'ja'
- @font_for_content = 'kozminproregular'
- @font_for_footer = 'kozminproregular'
- when 'zh-tw' # Traditional Chinese (BIG5)
- @font_for_content = 'msungstdlight'
- @font_for_footer = 'msungstdlight'
- when 'zh' # Simplified Chinese (GB18030)
- @font_for_content = 'stsongstdlight'
- @font_for_footer = 'stsongstdlight'
- when 'ko' # Korean (UHC)
- @font_for_content = 'hysmyeongjostdmedium'
- @font_for_footer = 'hysmyeongjostdmedium'
- when 'th' # Thai
- @font_for_content = 'freeserif'
- @font_for_footer = 'freeserif'
- else
- @font_for_content = 'freesans'
- @font_for_footer = 'freesans'
- end
+ @font_for_content = l(:general_pdf_fontname)
+ @font_for_footer = l(:general_pdf_fontname)
set_creator(Redmine::Info.app_name)
set_font(@font_for_content)