add configuration of RMagcik font for CJK (Chinese, Japanese and Korean) (#4787)

Contributed by Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10890 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2012-11-28 10:11:33 +00:00
parent f4cf7bc6f5
commit c7ee26b144
2 changed files with 23 additions and 0 deletions
+1
View File
@@ -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)