Defect #4787 » png_rmagick_font_path_r8987.patch
config/configuration.yml.example (working copy) | ||
---|---|---|
148 | 148 |
# * encrypt data using 'rake db:encrypt RAILS_ENV=production' |
149 | 149 |
database_cipher_key: |
150 | 150 | |
151 |
# Configuration of RMagcik font. |
|
152 |
# Examples: |
|
153 |
# rmagick_font_path: C:\windows\fonts\msgothic.ttc |
|
154 |
# rmagick_font_path: /usr/share/fonts/ipa-mincho/ipam.ttf |
|
155 |
rmagick_font_path: |
|
156 | ||
151 | 157 |
# specific configuration options for production environment |
152 | 158 |
# that overrides the default ones |
153 | 159 |
production: |
lib/redmine/helpers/gantt.rb (working copy) | ||
---|---|---|
409 | 409 |
imgl = Magick::ImageList.new |
410 | 410 |
imgl.new_image(subject_width+g_width+1, height) |
411 | 411 |
gc = Magick::Draw.new |
412 |
gc.font = Redmine::Configuration['rmagick_font_path'] || "" |
|
412 | 413 | |
413 | 414 |
# Subjects |
414 | 415 |
gc.stroke('transparent') |