diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-13 23:29:48 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-13 23:31:52 -0700 |
commit | fc6b602342beba3dc9ebef8748470018be6652a8 (patch) | |
tree | 63861115ee5c32409677f13c5e946a093782a416 | |
parent | 119abbd52ea8648a8af8a5bf15066f96e7b0e247 (diff) | |
download | view.love-fc6b602342beba3dc9ebef8748470018be6652a8.tar.gz |
bugfix: zoom in/out hotkeys
Broken since commit 3b36093553 5 hours ago.
-rw-r--r-- | main.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/main.lua b/main.lua index 0164a7a..a15ab41 100644 --- a/main.lua +++ b/main.lua @@ -128,6 +128,13 @@ function App.resize(w, h) Last_resize_time = App.getTime() end +function initialize_font_settings(font_height) + Editor_state.font_height = font_height + love.graphics.setFont(love.graphics.newFont(Editor_state.font_height)) + Editor_state.line_height = math.floor(font_height*1.3) + Editor_state.em = App.newText(love.graphics.getFont(), 'm') +end + function App.filedropped(file) -- first make sure to save edits on any existing file if Editor_state.next_save then |