Merge text0

This commit is contained in:
Kartik K. Agaram 2024-07-10 00:47:19 -07:00
commit c0c2a9ae32
1 changed files with 2 additions and 2 deletions

View File

@ -380,9 +380,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