A = function() -- print('A') local font = love.graphics.newFont(scale(20)) love.graphics.setFont(font) -- editor objects implicitly depend on current font -- translate some page in Global_state to Surface Surface = {} if Global_state.thread == nil then lay_out_file_picker() else compute_layout(Global_state.thread, 0,0, Surface, font) end compute_viewport_bounds() -- continue the pipeline B(font) -- TODO: ugly that we're manipulating editor objects twice end