~akkartik/luaML.love

c61de93be2c30b9557b7aec2b9865bebb2c04558 — Kartik K. Agaram 2 months ago f5c040d + db2463b
Merge text.love
1 files changed, 2 insertions(+), 2 deletions(-)

M edit.lua
M edit.lua => edit.lua +2 -2
@@ 381,9 381,9 @@ end
function edit.key_release(State, key, scancode)
end

function edit.update_font_settings(State, font_height)
function edit.update_font_settings(State, font_height, font)
  State.font_height = font_height
  State.font = love.graphics.newFont(State.font_height)
  State.font = font or love.graphics.newFont(State.font_height)
  State.line_height = math.floor(font_height*1.3)
end