Project

General

Profile

Patch #8310 » tcpdf_Automatic_line_break_r5661.patch

Jun NAITOH, 2011-05-06 10:42

View differences:

vendor/plugins/rfpdf/lib/tcpdf.rb (working copy)
ns += 1;
end
l = GetStringWidth(s[from_j, to_index-from_j]);
l = GetStringWidth(s[from_j, to_index - from_j + 1]);
if (l > wmax)
#Automatic line break
......
if (c == " "[0])
sep= i;
end
l = GetStringWidth(s[j, i-j]);
l = GetStringWidth(s[j, i-j+1]);
if (l > wmax)
#Automatic line break (word wrapping)
if (sep == -1)
(1-1/3)