https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292020-01-17T23:54:10ZRedmineRedmine - Defect #32832: FrozenError when exporting content to PDF in some languageshttps://www.redmine.org/issues/32832?journal_id=957712020-01-17T23:54:10ZGo MAEDA
<ul><li><strong>Tracker</strong> changed from <i>Patch</i> to <i>Defect</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Confirmed</i></li><li><strong>Target version</strong> set to <i>4.1.1</i></li></ul><p>I think the change in <code>SetFontStyle</code> can be ommitted and fixing only <code>SetFont</code> is enough. What do you think?</p>
<pre><code class="diff syntaxhl"><span class="gh">diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb
index c8189367b..85beb8bdb 100644
</span><span class="gd">--- a/lib/redmine/export/pdf.rb
</span><span class="gi">+++ b/lib/redmine/export/pdf.rb
</span><span class="p">@@ -52,6 +52,7 @@</span> module Redmine
end
def SetFont(family, style='', size=0, fontfile='')
<span class="gi">+ style = +style
</span> # FreeSerif Bold Thai font has problem.
style.delete!('B') if family.to_s.casecmp('freeserif') == 0
# DejaVuSans Italic Arabic and Persian font has problem.
</code></pre> Redmine - Defect #32832: FrozenError when exporting content to PDF in some languageshttps://www.redmine.org/issues/32832?journal_id=957732020-01-18T07:42:58ZPavel Rosický
<ul></ul><p>you're right</p> Redmine - Defect #32832: FrozenError when exporting content to PDF in some languageshttps://www.redmine.org/issues/32832?journal_id=957742020-01-18T07:45:08ZPavel Rosický
<ul><li><strong>File</strong> <a href="/attachments/24630">fix_pdfexport2.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/24630/fix_pdfexport2.patch">fix_pdfexport2.patch</a> added</li></ul> Redmine - Defect #32832: FrozenError when exporting content to PDF in some languageshttps://www.redmine.org/issues/32832?journal_id=957772020-01-18T09:59:13ZGo MAEDA
<ul><li><strong>Subject</strong> changed from <i>pdf export - frozen error</i> to <i>FrozenError when exporting gantt to PDF in some languages</i></li><li><strong>Status</strong> changed from <i>Confirmed</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Go MAEDA</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Committed the patch. Thank you.</p> Redmine - Defect #32832: FrozenError when exporting content to PDF in some languageshttps://www.redmine.org/issues/32832?journal_id=957792020-01-19T00:06:45ZGo MAEDA
<ul><li><strong>Subject</strong> changed from <i>FrozenError when exporting gantt to PDF in some languages</i> to <i>FrozenError when exporting content to PDF in some languages</i></li></ul>