on.initialize = function() love.graphics.setFont(love.graphics.newFont(20)) Line_height = math.floor(love.graphics.getFont():getHeight()*1.3) Line_number_padding = Line_number_width*App.width('m') Menu_left, Menu_top = love.window.getSafeArea() Menu_height = 5 + Line_height + 5 Menu_bottom = Menu_top + Menu_height Editor_state = edit.initialize_state( --[[top]] Menu_bottom + 20, --[[bottom]] App.screen.height/2-5, --[[left]] 100, --[[right]] 400, love.graphics.getFont():getHeight(), Line_height) Text.redraw_all(Editor_state) end