Removed debug prints
This commit is contained in:
parent
d7299822ed
commit
33b6ed79fe
3
main.lua
3
main.lua
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user