Project

General

Profile

Defect #13781 » pdf_font_name_r13446.patch

Jun NAITOH, 2014-10-15 16:54

View differences:

config/configuration.yml.example (working copy)
169 169
  #
170 170
  rmagick_font_path:
171 171

  
172
  # Configuration of PDF font for non CJKV(and Thai) locale.
173
  # Examples for Vietnamese:
174
  #    pdf_font_name: DejaVuSans
175
  # Examples for Japanese:
176
  #    pdf_font_name: kozminproregular
177
  # Examples for Traditional Chinese (BIG5):
178
  #    pdf_font_name: msungstdlight
179
  # Examples for Simplified Chinese (GB18030)
180
  #    pdf_font_name: stsongstdlight
181
  # Examples for Korean (UHC)
182
  #    pdf_font_name: hysmyeongjostdmedium
183
  # Examples for Thai
184
  #    pdf_font_name: freeserif
185
  pdf_font_name: 
186

  
172 187
  # Maximum number of simultaneous AJAX uploads
173 188
  #max_concurrent_ajax_uploads: 2
174 189

  
lib/redmine/export/pdf.rb (working copy)
59 59
            @font_for_content = 'freeserif'
60 60
            @font_for_footer  = 'freeserif'
61 61
          else
62
            @font_for_content = 'freesans'
63
            @font_for_footer  = 'freesans'
62
            @font_for_content = Redmine::Configuration['pdf_font_name'] || 'freesans'
63
            @font_for_footer  = Redmine::Configuration['pdf_font_name'] || 'freesans'
64 64
          end
65 65
          set_creator(Redmine::Info.app_name)
66 66
          set_font(@font_for_content)
(3-3/3)