Project

General

Profile

Defect #4787 » png_rmagick_font_path_r10851.patch

Toshi MARUYAMA, 2012-11-19 13:36

View differences:

config/configuration.yml.example
166 166
  # the ImageMagick's `convert` binary. Used to generate attachment thumbnails.
167 167
  #imagemagick_convert_command:
168 168

  
169
  # Configuration of RMagcik font.
170
  # Examples:
171
  # rmagick_font_path: C:\windows\fonts\msgothic.ttc
172
  # rmagick_font_path: /usr/share/fonts/ipa-mincho/ipam.ttf
173
  rmagick_font_path:
174

  
169 175
# specific configuration options for production environment
170 176
# that overrides the default ones
171 177
production:
lib/redmine/helpers/gantt.rb
400 400
        imgl = Magick::ImageList.new
401 401
        imgl.new_image(subject_width + g_width + 1, height)
402 402
        gc = Magick::Draw.new
403
        gc.font = Redmine::Configuration['rmagick_font_path'] || ""
403 404
        # Subjects
404 405
        gc.stroke('transparent')
405 406
        subjects(:image => gc, :top => (headers_height + 20), :indent => 4, :format => :image)
(8-8/8)