# HG changeset patch
# User Toshi MARUYAMA
# Date 1353327634 -32400
# Branch 2.1-stable
# Node ID a0a983aa516e4d0895acefb65c49fbee9fef0990
# Parent 50df88f93ef478974baa1a97c334ae1f5a56c83e
(#4787)

diff --git a/config/configuration.yml.example b/config/configuration.yml.example
--- a/config/configuration.yml.example
+++ b/config/configuration.yml.example
@@ -166,6 +166,12 @@ default:
   # the ImageMagick's `convert` binary. Used to generate attachment thumbnails.
   #imagemagick_convert_command:
 
+  # Configuration of RMagcik font.
+  # Examples:
+  # rmagick_font_path: C:\windows\fonts\msgothic.ttc
+  # rmagick_font_path: /usr/share/fonts/ipa-mincho/ipam.ttf
+  rmagick_font_path:
+
 # specific configuration options for production environment
 # that overrides the default ones
 production:
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -400,6 +400,7 @@ module Redmine
         imgl = Magick::ImageList.new
         imgl.new_image(subject_width + g_width + 1, height)
         gc = Magick::Draw.new
+        gc.font = Redmine::Configuration['rmagick_font_path'] || ""
         # Subjects
         gc.stroke('transparent')
         subjects(:image => gc, :top => (headers_height + 20), :indent => 4, :format => :image)
