Removed debug prints

This commit is contained in:
Jon Michael Aanes 2018-06-10 01:02:36 +02:00
parent d7299822ed
commit 33b6ed79fe

View File

@ -153,12 +153,9 @@ local function determine_font_and_lines_for_box (font_name, text, width, height)
local estimate_num_lines = height / select(2, estimate_font:get_size(text)) local estimate_num_lines = height / select(2, estimate_font:get_size(text))
local lines = wrap_lines(estimate_font, text, width) local lines = wrap_lines(estimate_font, text, width)
local actual_num_lines = #lines local actual_num_lines = #lines
print(require'pretty'(lines))
--local estimate_num_lines = #lines
if #lines * line_height >= height then if #lines * line_height >= height then
estimate_num_lines = estimate_num_lines - 1 estimate_num_lines = estimate_num_lines - 1
end end
print(num_lines, estimate_num_lines)
-- Test for convergence -- Test for convergence
if last_actual == actual_num_lines then if last_actual == actual_num_lines then
actual_lines = lines actual_lines = lines