summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2015-11-25 07:41:52 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2015-11-25 07:41:52 +0000
commit08083b32301796c165ff2eb4046ec008258f17fd (patch)
tree0bf4ecddfc293b8e9023b2b6ad07fbf4c58fcefe
parent3cbb4eca93e35dafc2894d6e36451e23a57f7e74 (diff)
downloadredmine-08083b32301796c165ff2eb4046ec008258f17fd.tar.gz
redmine-08083b32301796c165ff2eb4046ec008258f17fd.zip
Merged r14888 from trunk to 3.1-stable (#21328)
pdf: fix Vietnamese Italic is not shown. git-svn-id: http://svn.redmine.org/redmine/branches/3.1-stable@14889 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--lib/redmine/export/pdf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb
index e3861b6f3..8f94b68f2 100644
--- a/lib/redmine/export/pdf.rb
+++ b/lib/redmine/export/pdf.rb
@@ -53,7 +53,7 @@ module Redmine
# FreeSerif Bold Thai font has problem.
style.delete!('B') if l(:general_pdf_fontname) == 'freeserif'
# DejaVuSans Italic Arabic and Persian font has problem.
- style.delete!('I') if l(:general_pdf_fontname) == 'DejaVuSans'
+ style.delete!('I') if l(:general_pdf_fontname) == 'DejaVuSans' && current_language.to_s.casecmp("vi") != 0
super(family, style, size, fontfile)
end
alias_method :set_font, :SetFont