Defect #4787 » png_rmagick_font_r8745.patch
| app/views/settings/_display.html.erb (working copy) | ||
|---|---|---|
|
<p><%= setting_check_box :gravatar_enabled %></p>
|
||
|
<p><%= setting_select :gravatar_default, [["Wavatars", 'wavatar'], ["Identicons", 'identicon'], ["Monster ids", 'monsterid'], ["Retro", 'retro'], ["Mystery man", 'mm']], :blank => :label_none %></p>
|
||
|
<p><%= setting_select :rmagick_font, Object.const_defined?(:Magick) ? Magick.fonts.collect {|t| [t.name, CGI.escape(t.name)]} : [], :blank => :label_none %></p>
|
||
|
</div>
|
||
|
<%= submit_tag l(:button_save) %>
|
||
| config/settings.yml (working copy) | ||
|---|---|---|
|
default: 'only_my_events'
|
||
|
emails_header:
|
||
|
default: ''
|
||
|
rmagick_font:
|
||
|
default: ''
|
||
| config/locales/en.yml (working copy) | ||
|---|---|---|
|
setting_gantt_items_limit: Maximum number of items displayed on the gantt chart
|
||
|
setting_issue_group_assignment: Allow issue assignment to groups
|
||
|
setting_default_issue_start_date_to_creation_date: Use current date as start date for new issues
|
||
|
setting_rmagick_font: RMagick font
|
||
|
permission_add_project: Create project
|
||
|
permission_add_subprojects: Create subprojects
|
||
| lib/redmine/helpers/gantt.rb (working copy) | ||
|---|---|---|
|
imgl = Magick::ImageList.new
|
||
|
imgl.new_image(subject_width+g_width+1, height)
|
||
|
gc = Magick::Draw.new
|
||
|
gc.font = CGI.unescape(Setting.rmagick_font) if Setting.rmagick_font != ""
|
||
|
# Subjects
|
||
|
gc.stroke('transparent')
|
||