@@ -166,6 +166,28 default: | |||||
166 | # the ImageMagick's `convert` binary. Used to generate attachment thumbnails. |
|
166 | # the ImageMagick's `convert` binary. Used to generate attachment thumbnails. | |
167 | #imagemagick_convert_command: |
|
167 | #imagemagick_convert_command: | |
168 |
|
168 | |||
|
169 | # Configuration of RMagcik font. | |||
|
170 | # | |||
|
171 | # Redmine uses RMagcik in order to export gantt png. | |||
|
172 | # You don't need this setting if you don't install RMagcik. | |||
|
173 | # | |||
|
174 | # In CJK (Chinese, Japanese and Korean), | |||
|
175 | # in order to show CJK characters correctly, | |||
|
176 | # you need to set this configuration. | |||
|
177 | # | |||
|
178 | # Because there is no standard font across platforms in non CJK, | |||
|
179 | # you need to set a font installed in your server. | |||
|
180 | # | |||
|
181 | # This setting is not necessary in non CJK. | |||
|
182 | # | |||
|
183 | # Examples for Japanese: | |||
|
184 | # Windows: | |||
|
185 | # rmagick_font_path: C:\windows\fonts\msgothic.ttc | |||
|
186 | # Linux: | |||
|
187 | # rmagick_font_path: /usr/share/fonts/ipa-mincho/ipam.ttf | |||
|
188 | # | |||
|
189 | rmagick_font_path: | |||
|
190 | ||||
169 | # specific configuration options for production environment |
|
191 | # specific configuration options for production environment | |
170 | # that overrides the default ones |
|
192 | # that overrides the default ones | |
171 | production: |
|
193 | production: |
@@ -400,6 +400,7 module Redmine | |||||
400 | imgl = Magick::ImageList.new |
|
400 | imgl = Magick::ImageList.new | |
401 | imgl.new_image(subject_width + g_width + 1, height) |
|
401 | imgl.new_image(subject_width + g_width + 1, height) | |
402 | gc = Magick::Draw.new |
|
402 | gc = Magick::Draw.new | |
|
403 | gc.font = Redmine::Configuration['rmagick_font_path'] || "" | |||
403 | # Subjects |
|
404 | # Subjects | |
404 | gc.stroke('transparent') |
|
405 | gc.stroke('transparent') | |
405 | subjects(:image => gc, :top => (headers_height + 20), :indent => 4, :format => :image) |
|
406 | subjects(:image => gc, :top => (headers_height + 20), :indent => 4, :format => :image) |
General Comments 0
You need to be logged in to leave comments.
Login now