summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2015-11-25 07:43:51 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2015-11-25 07:43:51 +0000
commit011d0afc52e1319327554c015f91ab8887166a7b (patch)
tree500db093843b21c908cd6b27bfd09e31aa64c6d0
parent98712e0039b0a101f20f6cb4aba76d58d0628896 (diff)
downloadredmine-011d0afc52e1319327554c015f91ab8887166a7b.tar.gz
redmine-011d0afc52e1319327554c015f91ab8887166a7b.zip
Merged r14888 from trunk to 2.6-stable (#21328)
pdf: fix Vietnamese Italic is not shown. git-svn-id: http://svn.redmine.org/redmine/branches/2.6-stable@14890 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 d8c949cfa..c3ec39a1c 100644
--- a/lib/redmine/export/pdf.rb
+++ b/lib/redmine/export/pdf.rb
@@ -56,7 +56,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