From 85b891ec9eea41e1b650f3594c157dea3d5ac4a9 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 10 Apr 2011 08:34:31 +0000 Subject: [PATCH] PDF: code clean up lib/redmine/export/pdf.rb. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5384 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/export/pdf.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb index c3b26a32d..395624881 100644 --- a/lib/redmine/export/pdf.rb +++ b/lib/redmine/export/pdf.rb @@ -84,7 +84,7 @@ module Redmine class IFPDF < FPDF include Redmine::I18n attr_accessor :footer_date - + def initialize(lang) super() set_language_if_valid lang @@ -98,17 +98,17 @@ module Redmine extend(PDF_Japanese) AddSJISFont() @font_for_content = 'SJIS' - @font_for_footer = 'SJIS' + @font_for_footer = 'SJIS' when 'GB18030' extend(PDF_Chinese) AddGBFont() @font_for_content = 'GB' - @font_for_footer = 'GB' + @font_for_footer = 'GB' when 'BIG5' extend(PDF_Chinese) AddBig5Font() @font_for_content = 'Big5' - @font_for_footer = 'Big5' + @font_for_footer = 'Big5' else @font_for_content = 'Arial' @font_for_footer = 'Helvetica' @@ -116,11 +116,11 @@ module Redmine SetCreator(Redmine::Info.app_name) SetFont(@font_for_content) end - + def SetFontStyle(style, size) SetFont(@font_for_content, style, size) end - + def SetTitle(txt) txt = begin utf16txt = Iconv.conv('UTF-16BE', 'UTF-8', txt) -- 2.39.5